# capacitor-plugin-screen-orientation
**Repository Path**: 3433/capacitor-plugin-screen-orientation
## Basic Information
- **Project Name**: capacitor-plugin-screen-orientation
- **Description**: 屏幕方向插件屏幕方向插件
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-06-02
- **Last Updated**: 2022-08-20
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# capacitor-plugin-screen-orientation
屏幕方向
## Install
```bash
npm install capacitor-plugin-screen-orientation
npx cap sync
```
## API
* [`echo(...)`](#echo)
* [`type()`](#type)
* [`lock(...)`](#lock)
* [Interfaces](#interfaces)
* [Type Aliases](#type-aliases)
### echo(...)
```typescript
echo(options: { value: string; }) => Promise<{ value: string; }>
```
| Param | Type |
| ------------- | ------------------------------- |
| **`options`** | { value: string; } |
**Returns:** Promise<{ value: string; }>
--------------------
### type()
```typescript
type() => Promise
```
**Returns:** Promise<typeResult>
--------------------
### lock(...)
```typescript
lock(options: lockOption) => 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