SdlManager
SdlManager
[string, null]
[HMILevel, null]
[FileManager, null]
[PermissionManager, null]
[RegisterAppInterfaceResponse, null]
[ScreenManager, null]
SystemCapabilityManager
SdlManager
Promise
Promise
Promise
Promise
Promise
Promise
SdlManager
SdlManager
Add a listener for a given FunctionID
Kind: Instance method of SdlManager
Returns: SdlManager
- A reference to this instance to support method chaining.
Param | Type | Description |
---|---|---|
functionId | Number |
A Function ID from the RPC Spec |
listener | function |
A callback function(RpcMessage) |
SdlManager
Gracefully disposes the managers and alerts and destroys the ManagerListener
Kind: Instance method of SdlManager
Returns: SdlManager
- A reference to this instance to support method chaining.
[string, null]
Retrieves the Auth Token from the _LifecycleManager
Kind: Instance method of SdlManager
Returns: [string, null]
- The auth token.
[HMILevel, null]
Retrieves the current HMI status from the _LifecycleManager
Kind: Instance method of SdlManager
Returns: [HMILevel, null]
- The HMI Level.
[FileManager, null]
Retrieves a reference to the FileManager, if ready
Kind: Instance method of SdlManager
Returns: [FileManager, null]
- The FileManager.
[PermissionManager, null]
Retrieves a reference to the PermissionManager, if ready
Kind: Instance method of SdlManager
Returns: [PermissionManager, null]
- The PermissionManager.
[RegisterAppInterfaceResponse, null]
Retrieves the RAI response from the _LifecycleManager
Kind: Instance method of SdlManager
Returns: [RegisterAppInterfaceResponse, null]
- A RegisterAppInterfaceResponse.
[ScreenManager, null]
Retrieves a reference to the ScreenManager, if ready
Kind: Instance method of SdlManager
Returns: [ScreenManager, null]
- The ScreenManager.
SystemCapabilityManager
Retrieves a reference to the SystemCapabilityManager
Kind: Instance method of SdlManager
Returns: SystemCapabilityManager
- The SystemCapabilityManager.
SdlManager
Remove a listener for a given FunctionID
Kind: Instance method of SdlManager
Returns: SdlManager
- A reference to this instance to support method chaining.
Param | Type | Description |
---|---|---|
functionId | Number |
A Function ID from the RPC Spec |
listener | function |
A callback function(RpcMessage) |
Promise
Sends a single RPC
Kind: Instance method of SdlManager
Returns: Promise
- A Promise which resolves if the RPC response is SUCCESS, otherwise rejects
Param | Type | Description |
---|---|---|
message | RpcMessage |
An RPC message to send. |
Promise
Sends a single RPC
Kind: Instance method of SdlManager
Returns: Promise
- A Promise which resolves regardless of the result code returned
Param | Type | Description |
---|---|---|
message | RpcMessage |
An RPC message to send. |
Promise
Sends multiple RPCs asynchronously
Kind: Instance method of SdlManager
Returns: Promise
- A Promise which resolves if all RPCs respond with SUCCESS, otherwise rejects with the first failure
Param | Type | Description |
---|---|---|
messages | Array.<RpcMessage> |
An array of RpcMessages |
Promise
Sends multiple RPCs asynchronously
Kind: Instance method of SdlManager
Returns: Promise
- A Promise which returns all RPCs when they all resolve, regardless of the result code
Param | Type | Description |
---|---|---|
messages | Array.<RpcMessage> |
An array of RpcMessages |
onUpdate | function |
A callback function that will be invoked with the result and the remaining requests left |
Promise
Sends multiple RPCs synchronously (in order)
Kind: Instance method of SdlManager
Returns: Promise
- A Promise which resolves with the last RPC response if all RPCs respond with SUCCESS, otherwise rejects with the first failure
Param | Type | Description |
---|---|---|
messages | Array.<RpcMessage> |
An array of RpcMessages |
Promise
Sends multiple RPCs synchronously (in order)
Kind: Instance method of SdlManager
Returns: Promise
- A Promise which returns all responses when they all resolve, regardless of the result code
Param | Type | Description |
---|---|---|
messages | Array.<RpcMessage> |
An array of RpcMessages |
onUpdate | function |
A callback function that will be invoked with the result and the remaining requests left |