summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLChangeRegistration.h
blob: 4bbc7c2345b7c5c44dd4918f9adc59170d35acb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//  SDLChangeRegistration.h
//


#import "SDLRPCRequest.h"

@class SDLLanguage;
@class SDLTTSChunk;

/**
 * If the app recognizes during the app registration that the SDL HMI language (voice/TTS and/or display) does not match the app language, the app will be able (but does not need) to change this registration with changeRegistration prior to app being brought into focus.
 *
 * Any HMILevel allowed
 *
 * @since SDL 2.0
 */
@interface SDLChangeRegistration : SDLRPCRequest {
}

/**
 * Constructs a new SDLChangeRegistration object
 */
- (instancetype)init;

/**
 * Constructs a new SDLChangeRegistration object indicated by the dictionary parameter
 *
 * @param dict The dictionary to use
 */
- (instancetype)initWithDictionary:(NSMutableDictionary *)dict;

/**
 * @abstract The language the app wants to change to
 */
@property (strong, nonatomic) SDLLanguage *language;

/**
 * @abstract HMI display language
 */
@property (strong, nonatomic) SDLLanguage *hmiDisplayLanguage;

/**
 *  Request a new app name registration
 *
 *  Optional, Max string length 100 chars
 */
@property (copy, nonatomic) NSString *appName;

/**
 *  Request a new TTSName registration.
 *
 *  Optional, Array of SDLTTSChunk, 1 - 100 elements
 */
@property (copy, nonatomic) NSArray *ttsName;

/**
 *  Request a new app short name registration
 *
 *  Optional, Max string length 100 chars
 */
@property (copy, nonatomic) NSString *ngnMediaScreenAppName;

/**
 *  Request a new VR synonyms registration
 *
 *  Optional, Array of NSString, 1 - 100 elements, max string length 40 chars
 */
@property (copy, nonatomic) NSArray *vrSynonyms;

@end