public class AppearanceModule extends NativeAppearanceSpec
Modifier and Type | Class and Description |
---|---|
static interface |
AppearanceModule.OverrideColorScheme
Optional override to the current color scheme
|
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) |
AppearanceModule(ReactApplicationContext reactContext,
AppearanceModule.OverrideColorScheme overrideColorScheme) |
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, getReactApplicationContextIfActiveOrWarn
canOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invalidate
public static final java.lang.String NAME
public AppearanceModule(ReactApplicationContext reactContext)
public AppearanceModule(ReactApplicationContext reactContext, AppearanceModule.OverrideColorScheme overrideColorScheme)
public java.lang.String getName()
require()
this module
from javascript.public java.lang.String getColorScheme()
getColorScheme
in class NativeAppearanceSpec
public void addListener(java.lang.String eventName)
addListener
in class NativeAppearanceSpec
public void removeListeners(double count)
removeListeners
in class NativeAppearanceSpec
public void onConfigurationChanged(android.content.Context currentContext)
public void emitAppearanceChanged(java.lang.String colorScheme)