public class GoalStimulus extends android.content.BroadcastReceiver implements Stimulus
The concrete implementation of the Stimulus interface which handles requests for goal notifications to be sent.
BroadcastReceiver
defaultStrategy
Constructor and Description |
---|
GoalStimulus() |
Modifier and Type | Method and Description |
---|---|
void |
onReceive(android.content.Context context,
android.content.Intent intent)
Upon receiving a broadcast from a strategy this method is triggered and starts the related
service which sends the notification after checking relevant personalised settings.
|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
context
- the context of the broadcastintent
- the intent with which the broadcast was sent