The cloud application properties.
Convenience init for required parameters.
- (nonnull instancetype)initWithAppID:(nonnull NSString *)appID;
init(appID: String)
The id of the cloud app
A SDLCloudAppProperties object
Convenience init for all parameters.
- (nonnull instancetype)initWithAppID:(nonnull NSString *)appID
nicknames:(nullable NSArray<NSString *> *)nicknames
enabled:(BOOL)enabled
authToken:(nullable NSString *)authToken
cloudTransportType:(nullable NSString *)cloudTransportType
hybridAppPreference:
(nullable SDLHybridAppPreference)hybridAppPreference
endpoint:(nullable NSString *)endpoint;
convenience init(appID: String, nicknames: [String]?, enabled: Bool, authToken: String?, cloudTransportType: String?, hybridAppPreference: SDLHybridAppPreference?, endpoint: String?)
The id of the cloud app
An array of app names a cloud app is allowed to register with
If true, the cloud app will appear in the HMI’s app list; if false, the cloud app will not appear in the HMI’s app list
Used to authenticate websocket connection on app activation
Specifies the connection type Core should use
Specifies the user preference to use the cloud app version or mobile app version when both are available
The websocket endpoint
A SDLCloudAppProperties object
An array of app names a cloud app is allowed to register with. If included in a SetCloudAppProperties
request, this value will overwrite the existing “nicknames” field in the app policies section of the policy table.
Array of Strings, Optional, String length: minlength=“0” maxlength=“100”, Array size: minsize=“0” maxsize=“100”
@property (nonatomic, strong, nullable) NSArray<NSString *> *nicknames;
var nicknames: [String]? { get set }
The id of the cloud app.
String, Required, maxlength=“100”
@property (nonatomic, strong) NSString *_Nonnull appID;
var appID: String { get set }
If true, the cloud app will appear in the HMI’s app list; if false, the cloud app will not appear in the HMI’s app list.
Boolean, Optional
@property (nonatomic, strong, nullable) NSNumber<SDLBool> *enabled;
var enabled: (NSNumber & SDLBool)? { get set }
Used to authenticate websocket connection on app activation.
String, Optional, maxlength=“65535”
@property (nonatomic, strong, nullable) NSString *authToken;
var authToken: String? { get set }
Specifies the connection type Core should use. Currently the ones that work in SDL Core are WS
or WSS
, but an OEM can implement their own transport adapter to handle different values.
String, Optional, maxlength=“100”
@property (nonatomic, strong, nullable) NSString *cloudTransportType;
var cloudTransportType: String? { get set }
Specifies the user preference to use the cloud app version or mobile app version when both are available.
SDLHybridAppPreference, Optional
@property (nonatomic, strong, nullable) SDLHybridAppPreference hybridAppPreference;
var hybridAppPreference: SDLHybridAppPreference? { get set }
The websocket endpoint.
String, Optional, maxlength=“65535”
@property (nonatomic, strong, nullable) NSString *endpoint;
var endpoint: String? { get set }