Class DynamicThemeReceiver
java.lang.Object
android.content.BroadcastReceiver
com.pranavpandey.android.dynamic.theme.receiver.DynamicThemeReceiver
A
BroadcastReceiver
to receive the theme data.
Extend this broadcast receiver and declare it in the project's manifest to receive the theme data.
-
Nested Class Summary
Nested classes/interfaces inherited from class android.content.BroadcastReceiver
BroadcastReceiver.PendingResult
-
Constructor Summary
-
Method Summary
Methods inherited from class android.content.BroadcastReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, getSentFromPackage, getSentFromUid, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
-
Constructor Details
-
DynamicThemeReceiver
public DynamicThemeReceiver()
-
-
Method Details
-
onReceive
- Specified by:
onReceive
in classBroadcastReceiver
-
onReceiveTheme
protected abstract void onReceiveTheme(@Nullable String theme, @Nullable String value, @Nullable String data) This method will be called when a theme data is received by this receiver.- Parameters:
theme
- The theme received by the receiver.value
- The theme value received by the receiver.data
- The theme data received by the receiver.
-