NavigationBarPlugin.state
The state object of the system navigation bar;
The value is an object implementing the StateObserver interface.
Properties
state.currentState
The current state object;
The value is an object implementing part of the State interface;
currentState can be used to get and set state; [Generally do not manually set the value of currentState, it will update automatically]
The value is undefined before the initial update completes;
Valid currentState properties include:
["overlay","visible","style","color", "insets"]
Methods
A Generator function;
Implements reading and listening of plugin state changes;
The listener set via StateObserver.onChange() will be triggered on state changes.Stop observing state changes
Add a listener; multiple listeners can be added via multiple calls
state.getState([force_update])
Get the current state value
Events
- None
Platform Support
Property/Method/Event | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
currentState | ✅ | ✅ | ✅ | X |
jsonlines | ✅ | ✅ | ✅ | X |
stopObserve | ✅ | ✅ | ✅ | X |
onChange | ✅ | ✅ | ✅ | X |
getState | ✅ | ✅ | ✅ | X |