public class StatusBarModule extends ReactContextBaseJavaModule
NativeModule that allows changing the appearance of the status bar.BaseJavaModule.JavaMethodNativeModule.NativeMethodMETHOD_TYPE_REMOTE, METHOD_TYPE_REMOTE_ASYNC| Constructor and Description |
|---|
StatusBarModule(ReactApplicationContext reactContext) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getConstants() |
java.lang.String |
getName() |
void |
setColor(int color,
boolean animated,
Promise res) |
void |
setHidden(boolean hidden,
Promise res) |
void |
setTranslucent(boolean translucent,
Promise res) |
getCurrentActivity, getReactApplicationContextcanOverrideExistingModule, getMethods, initialize, onCatalystInstanceDestroy, onReactBridgeInitialized, supportsWebWorkers, writeConstantsFieldpublic StatusBarModule(ReactApplicationContext reactContext)
public java.lang.String getName()
require() this module
from javascript.@Nullable public java.util.Map<java.lang.String,java.lang.Object> getConstants()
getConstants in class BaseJavaModulepublic void setColor(int color,
boolean animated,
Promise res)
public void setTranslucent(boolean translucent,
Promise res)
public void setHidden(boolean hidden,
Promise res)