public class AppearanceModule extends ReactContextBaseJavaModule
NativeModule.NativeMethod| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| Constructor and Description |
|---|
AppearanceModule(ReactApplicationContext reactContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(java.lang.String eventName)
Stub
|
void |
emitAppearanceChanged(java.lang.String colorScheme)
Sends an event to the JS instance that the preferred color scheme has changed.
|
java.lang.String |
getColorScheme() |
java.lang.String |
getName() |
void |
onConfigurationChanged(android.content.Context currentContext) |
void |
removeListeners(double count)
Stub
|
getCurrentActivity, getReactApplicationContext, getReactApplicationContextIfActiveOrWarncanOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroypublic static final java.lang.String NAME
public AppearanceModule(ReactApplicationContext reactContext)
public java.lang.String getName()
require() this module
from javascript.public java.lang.String getColorScheme()
public void addListener(java.lang.String eventName)
public void removeListeners(double count)
public void onConfigurationChanged(android.content.Context currentContext)
public void emitAppearanceChanged(java.lang.String colorScheme)