Package com.cheetahdigital.uikit.helper
Class LocalBroadcastHelper
- java.lang.Object
-
- com.cheetahdigital.uikit.helper.LocalBroadcastHelper
-
public class LocalBroadcastHelper extends java.lang.Object
Helper class for sending local broadcast on modules with registered receivers
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BUNDLE_EXTRA
static java.lang.String
CHALLENGE_RESPONSE_EVENT_ACTION
static java.lang.String
CHALLENGE_TYPE_EXTRA
static java.lang.String
EVENTS_RESPONSE_EVENT_ACTION
static java.lang.String
MESSAGE_RECEIVED_EVENT_ACTION
static java.lang.String
REDEMPTION_EVENT_ACTION
-
Constructor Summary
Constructors Constructor Description LocalBroadcastHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
sendChallengeResponseBroadcast(android.content.Context context)
Send a local broadcast for challenge responsestatic void
sendChallengeResponseBroadcast(android.content.Context context, android.os.Bundle bundle)
Send a local broadcast for challenge responsestatic void
sendEventsResponseBroadcast(android.content.Context context)
Send a local broadcast for events responsestatic void
sendLocalBroadcast(android.content.Context context, java.lang.String action, android.os.Bundle bundle)
Sends a local broadcaststatic void
sendMessageReceivedBroadcast(android.content.Context context)
Send local broadcast for message receivedstatic void
sendRedemptionBroadcast(android.content.Context context)
Send a local broadcast for redemption
-
-
-
Field Detail
-
REDEMPTION_EVENT_ACTION
public static final java.lang.String REDEMPTION_EVENT_ACTION
- See Also:
- Constant Field Values
-
CHALLENGE_RESPONSE_EVENT_ACTION
public static final java.lang.String CHALLENGE_RESPONSE_EVENT_ACTION
- See Also:
- Constant Field Values
-
MESSAGE_RECEIVED_EVENT_ACTION
public static final java.lang.String MESSAGE_RECEIVED_EVENT_ACTION
- See Also:
- Constant Field Values
-
EVENTS_RESPONSE_EVENT_ACTION
public static final java.lang.String EVENTS_RESPONSE_EVENT_ACTION
- See Also:
- Constant Field Values
-
BUNDLE_EXTRA
public static final java.lang.String BUNDLE_EXTRA
- See Also:
- Constant Field Values
-
CHALLENGE_TYPE_EXTRA
public static final java.lang.String CHALLENGE_TYPE_EXTRA
- See Also:
- Constant Field Values
-
-
Method Detail
-
sendRedemptionBroadcast
public static void sendRedemptionBroadcast(android.content.Context context)
Send a local broadcast for redemption- Parameters:
context
- used to access resources
-
sendChallengeResponseBroadcast
public static void sendChallengeResponseBroadcast(android.content.Context context)
Send a local broadcast for challenge response- Parameters:
context
- used to access resources
-
sendChallengeResponseBroadcast
public static void sendChallengeResponseBroadcast(android.content.Context context, android.os.Bundle bundle)
Send a local broadcast for challenge response- Parameters:
context
- used to access resourcesbundle
-Bundle
data to be broadcasted
-
sendMessageReceivedBroadcast
public static void sendMessageReceivedBroadcast(android.content.Context context)
Send local broadcast for message received- Parameters:
context
- used to access resources
-
sendEventsResponseBroadcast
public static void sendEventsResponseBroadcast(android.content.Context context)
Send a local broadcast for events response- Parameters:
context
- used to access resources
-
sendLocalBroadcast
public static void sendLocalBroadcast(android.content.Context context, java.lang.String action, @Nullable android.os.Bundle bundle)
Sends a local broadcast- Parameters:
context
- used to access resourcesaction
- identifies the broadcastbundle
-Bundle
data to be broadcasted
-
-