IdentityNative
Extends:
Identity native controller
Allows consumers to send and receive messages via a native application bridge. The native application must be set up to create a nativeWrapper window attribute to leverage the bridge calls.
Constructor Summary
| Public Constructor | ||
| public |
IdentityNative constructor |
|
Member Summary
| Public Members | ||
| public get |
initialized: boolean: * Return if bridge is initialized or not |
|
Method Summary
| Public Methods | ||
| public |
Initialize the native controller |
|
| public |
Listen for messages from the native wrapper and add to the event bus |
|
| public |
Initialize the native wrapper |
|
| public |
sendCommand(subject: string, payload: Object) Send a command to the native wrapper |
|
| public |
sendMessage(message: Object): Promise Send a message to the native wrapper |
|
| public |
Add callbacks to the onMessage queue |
|
| public |
Notify that the wrapper is ready |
|
Inherited Summary
| From class Observable | ||
| public |
Notify all observers of specified event type |
|
| public |
Register callback to be called with events of specified type |
|
Public Constructors
Public Members
Public Methods
public onMessage(message: Object) source
Listen for messages from the native wrapper and add to the event bus
Params:
| Name | Type | Attribute | Description |
| message | Object |
public sendMessage(message: Object): Promise source
Send a message to the native wrapper
Params:
| Name | Type | Attribute | Description |
| message | Object |
Manual
Reference
Source
Test
