-
public class ActivationContext
-
-
Field Summary
Fields Modifier and Type Field Description protected AblyRestablyprotected StringclientIdprotected ActivationStateMachineactivationStateMachineprotected LocalDevicelocalDevice
-
Constructor Summary
Constructors Constructor Description ActivationContext(Context context)
-
Method Summary
Modifier and Type Method Description AblyRestgetAbly()voidsetAbly(AblyRest ably)booleansetClientId(String clientId, boolean propagateGotPushDeviceDetails)synchronized ActivationStateMachinegetActivationStateMachine()synchronized voidsetActivationStateMachine(ActivationStateMachine activationStateMachine)synchronized LocalDevicegetLocalDevice()voidonNewRegistrationToken(RegistrationToken.Type type, String token)voidreset()Should be used in tests only static ActivationContextgetActivationContext(Context applicationContext)static ActivationContextgetActivationContext(Context applicationContext, AblyRest ably)static voidsetActivationContext(Context applicationContext, ActivationContext activationContext)-
-
Constructor Detail
-
ActivationContext
ActivationContext(Context context)
-
-
Method Detail
-
setClientId
boolean setClientId(String clientId, boolean propagateGotPushDeviceDetails)
-
getActivationStateMachine
synchronized ActivationStateMachine getActivationStateMachine()
-
setActivationStateMachine
synchronized void setActivationStateMachine(ActivationStateMachine activationStateMachine)
-
getLocalDevice
synchronized LocalDevice getLocalDevice()
-
onNewRegistrationToken
void onNewRegistrationToken(RegistrationToken.Type type, String token)
-
reset
void reset()
Should be used in tests only
-
getActivationContext
static ActivationContext getActivationContext(Context applicationContext)
-
getActivationContext
static ActivationContext getActivationContext(Context applicationContext, AblyRest ably)
-
setActivationContext
static void setActivationContext(Context applicationContext, ActivationContext activationContext)
-
-
-
-