Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
payen83 authored Dec 12, 2024
1 parent 123193b commit 1739959
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions screen-orientation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ By default, an iPad allows Multitasking and its orientation cannot be locked. If
<true/>
```


## Example

```typescript
import { ScreenOrientation } from '@capacitor/screen-orientation';

async ngOnInit(){
return await ScreenOrientation.lock({orientation: 'portrait'});
}
```

## API

<docgen-index>
Expand Down

0 comments on commit 1739959

Please sign in to comment.