PlayerIO

The fastest way to build online games without breaking a sweat.

Android Client Reference

Android  class documentationClass Notification

Namespace: com.playerio
Language: Java

A Notification

Methods

 
public Map<String,String>
getData ()

The notification data

public String
getEndpointType ()

The type of notification endpoint that will receive this notification

public String
getRecipientUserId ()

The intended recipient (userId) of this notification

public
Notification (String recipientUserId, String endpointType)

Create a new notification intended for the specified recipient if he/she has registered a notification endpoint of the given type.

public Notification
set (String key, String value)

Add a specific argument to the Data of this notification

Notification.getData

public Map<String,String>
getData ()

The notification data

Notification.getEndpointType

public String
getEndpointType ()

The type of notification endpoint that will receive this notification

Notification.getRecipientUserId

public String
getRecipientUserId ()

The intended recipient (userId) of this notification

Notification.Notification

public
Notification (String recipientUserId, String endpointType)

Create a new notification intended for the specified recipient if he/she has registered a notification endpoint of the given type.

Arguments

String recipientUserId
The intended recipient userId of this notification.
String endpointType
The endpoint type that this notification is intended for. Can be "ios-push" or "gcm".

Notification.set

public Notification
set (String key, String value)

Add a specific argument to the Data of this notification

Arguments

String key
The key to add
String value
The value to add