ConnectedDevicesPlatform Class
- java.
lang. Object - NativeBase
- com.
microsoft. connecteddevices. ConnectedDevicesPlatform
- com.
public class ConnectedDevicesPlatform
A class to represent the Connected Devices Platform and manage the app's connection to it.
Constructor Summary
Constructor | Description |
---|---|
ConnectedDevicesPlatform(@NonNull Context context) |
Creates and initializes a new instance of this class. |
ConnectedDevicesPlatform(@NonNull Context context, @NonNull ConnectedDevicesPlatformSettings settings) |
Creates and initializes a new instance of this class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Connected |
getAccountManager()
Get ConnectedDevicesAccountManager instance held by the platform |
Connected |
getNotificationRegistrationManager()
Get ConnectedDevicesNotificationRegistrationManager instance held by platform |
Connected |
processNotification(@NonNull Bundle bundle)
Process incoming GCM notification |
Connected |
processNotification(@NonNull Map map)
Process incoming FCM notification |
Async |
processNotificationAsync(@NonNull ConnectedDevicesNotification notification)
Process incoming notification. If the notification is not for the ConnectedDevicesPlatform, the returned AsyncOperation will be completed in an asynchronous fashion as soon as possible. |
Async |
shutdownAsync()
Shuts down the Connected Devices Platform. |
void |
start()
Start the platform |
Constructor Details
ConnectedDevicesPlatform
public ConnectedDevicesPlatform(@NonNull Context context)
Creates and initializes a new instance of this class.
Parameters:
ConnectedDevicesPlatform
public ConnectedDevicesPlatform(@NonNull Context context, @NonNull ConnectedDevicesPlatformSettings settings)
Creates and initializes a new instance of this class.
Parameters:
Method Details
getAccountManager
public ConnectedDevicesAccountManager getAccountManager()
Get ConnectedDevicesAccountManager instance held by the platform
Returns:
getNotificationRegistrationManager
public ConnectedDevicesNotificationRegistrationManager getNotificationRegistrationManager()
Get ConnectedDevicesNotificationRegistrationManager instance held by platform
Returns:
processNotification
public ConnectedDevicesProcessNotificationOperation processNotification(@NonNull Bundle bundle)
Process incoming GCM notification
Parameters:
Returns:
processNotification
public ConnectedDevicesProcessNotificationOperation processNotification(@NonNull Map map)
Process incoming FCM notification
Parameters:
Returns:
processNotificationAsync
public AsyncOperation
Process incoming notification. If the notification is not for the ConnectedDevicesPlatform, the returned AsyncOperation will be completed in an asynchronous fashion as soon as possible.
Parameters:
Returns:
shutdownAsync
public AsyncOperation
Shuts down the Connected Devices Platform.
Returns:
start
public void start()
Start the platform