public static final class

Message.Builder

extends Object
java.lang.Object
   ↳ com.google.android.gcm.server.Message.Builder

Summary

Public Constructors
Message.Builder()
Public Methods
Message.Builder addData(String key, String value)
Adds a key/value pair to the payload data.
Message build()
Message.Builder collapseKey(String value)
Sets the collapseKey property.
Message.Builder delayWhileIdle(boolean value)
Sets the delayWhileIdle property (default value is false).
Message.Builder dryRun(boolean value)
Sets the dryRun property (default value is false).
Message.Builder restrictedPackageName(String value)
Sets the restrictedPackageName property.
Message.Builder timeToLive(int value)
Sets the time to live, in seconds.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Message.Builder ()

Public Methods

public Message.Builder addData (String key, String value)

Adds a key/value pair to the payload data.

public Message build ()

public Message.Builder collapseKey (String value)

Sets the collapseKey property.

public Message.Builder delayWhileIdle (boolean value)

Sets the delayWhileIdle property (default value is false).

public Message.Builder dryRun (boolean value)

Sets the dryRun property (default value is false).

public Message.Builder restrictedPackageName (String value)

Sets the restrictedPackageName property.

public Message.Builder timeToLive (int value)

Sets the time to live, in seconds.