capacitor-plugin-screen-orientation
v0.0.6
Published
屏幕方向
Downloads
1
Readme
capacitor-plugin-screen-orientation
屏幕方向
Install
npm install capacitor-plugin-screen-orientation
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
type()
type() => Promise<typeResult>
Returns: Promise<typeResult>
lock(...)
lock(options: lockOption) => Promise<void>
| Param | Type |
| ------------- | ------------------------------------------------- |
| options
| lockOption |
Interfaces
typeResult
| Prop | Type |
| ----------------- | ------------------------------------------------------------- |
| orientation
| orientationValue |
| setting
| settingValue |
lockOption
| Prop | Type |
| ----------------- | ------------------------------------------------------------- |
| setting
| settingValue |
| orientation
| orientationValue |
Type Aliases
orientationValue
'landscape' | 'portrait' | ''
settingValue
'any' | 'portrait-primary' | 'portrait-secondary' | 'landscape-primary' | 'landscape-secondary' | 'portrait' | 'landscape' | number