ConnectedDevicesNotification Class

  • java.lang.Object
    • NativeBase
      • com.microsoft.connecteddevices.ConnectedDevicesNotification

public class ConnectedDevicesNotification

Object that represents an incoming notification to be processed by the Connected Devices Platform

Method Summary

Modifier and Type Method and Description
List<String> getCorrelationVectors()

Retrieves the correlation vectors, if any, associated with this notification.

ConnectedDevicesNotification tryParse(@NonNull Map map)

Attempts to parse a ConnectedDevicesNotification from an FCM formatted map formatted as an FCM notification.

Method Details

getCorrelationVectors

public List getCorrelationVectors()

Retrieves the correlation vectors, if any, associated with this notification.

Returns:

A List of correlation vectors

tryParse

public static ConnectedDevicesNotification tryParse(@NonNull Map map)

Attempts to parse a ConnectedDevicesNotification from an FCM formatted map formatted as an FCM notification.

Parameters:

map - The map received from FirebaseMessagingService.onMessageReceived

Returns:

A ConnectedDevicesNotification. If the FCM notification is not a ConnectedDevicesNotification, this will return null.

Applies to