SafeAreaPlugin.getState()
August 11, 2023
- Plugin
Get the state of the safe area;
SafeAreaPlugin.getState([force_update])
Parameters
force_update
Accepts a boolean data; whether to force update the state; force_update === true will read the state from the system again; force_update === false will return the cached state data last time;
Return Value
- A Promise object that resolves to an object implementing partial State interface; see details in SafeAreaPlugin.state attribute value;
Example
import { SafeAreaPlugin } from "@plaoc/plugins";
const value = SafeAreaPlugin.getState(true)
Platform Compatibility
Properties/Methods/Events | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
getState | ✅ | ✅ | ✅ | X |
Related Links
Powered by Waline v2.13.0