|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stackmob.sdk.push.StackMobPushToken
public class StackMobPushToken
A push token identifies a specific device for push on a particular platform. The token can then be registered with StackMob and pushed to.
StackMobPush.registerForPushWithUser(StackMobPushToken, String, boolean, com.stackmob.sdk.callback.StackMobRawCallback),
StackMobPush.pushToTokens(java.util.Map, java.util.List, com.stackmob.sdk.callback.StackMobRawCallback)| Nested Class Summary | |
|---|---|
static class |
StackMobPushToken.Deserializer
|
static class |
StackMobPushToken.Serializer
|
static class |
StackMobPushToken.TokenType
The supported push platforms a token can be from. |
| Constructor Summary | |
|---|---|
StackMobPushToken(String token)
create a token with a string and the default platform |
|
StackMobPushToken(String token,
StackMobPushToken.TokenType type)
create a token with a string and type |
|
| Method Summary | |
|---|---|
String |
getToken()
get the token string |
StackMobPushToken.TokenType |
getTokenType()
get the token type |
static void |
setPushType(StackMobPushToken.TokenType type)
Sets the type of push this StackMob instance will do. |
void |
setTokenType(StackMobPushToken.TokenType type)
change the token type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StackMobPushToken(String token)
token - the token string
public StackMobPushToken(String token,
StackMobPushToken.TokenType type)
token - the token stringtype - the platform you're using| Method Detail |
|---|
public static void setPushType(StackMobPushToken.TokenType type)
type - C2DM or GCMpublic String getToken()
public StackMobPushToken.TokenType getTokenType()
public void setTokenType(StackMobPushToken.TokenType type)
type - the new type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||