SafeAreaPlugin
Pluginstatus-barLess than 1 minute
The SafeAreaPlugin interface represents the safe area of the screen;
The safe area is strongly associated with system bars and hardware;
import { safeAreaPlugin } from "@plaoc/plugins";
safeAreaPlugin.setOverlay(true)
Properties
The state object of the safe area;
The property value is an object implementing the StateObserver interface;
Methods
Query the overlay status;
If the resolved Promise object is true;
It indicates the content in the safe area will be overlapped by system bars;SafeAreaPlugin.getState([force_update])
Get the state of the safe area;
Set the overlay status;
If set to true;
It indicates the content in the safe area will be overlapped by system bars;Set the state of the safe area;
SafeAreaPlugin.setStateByKey()
Set the value of a state in the safe area;
Events
- None
Platform Compatibility
Properties/Methods/Events | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
state | ✅ | ✅ | ✅ | X |
getOverlay | ✅ | ✅ | ✅ | X |
getState | ✅ | ✅ | ✅ | X |
setOverlay | ✅ | ✅ | ✅ | X |
setState | ✅ | ✅ | ✅ | X |
setStateByKey | ✅ | ✅ | ✅ | X |
Related Links
Powered by Waline v2.15.7