diff --git a/screen-orientation/README.md b/screen-orientation/README.md index d909a75a6..20e4034ac 100644 --- a/screen-orientation/README.md +++ b/screen-orientation/README.md @@ -29,6 +29,17 @@ By default, an iPad allows Multitasking and its orientation cannot be locked. If ``` + +## Example + +```typescript +import { ScreenOrientation } from '@capacitor/screen-orientation'; + +async ngOnInit(){ + return await ScreenOrientation.lock({orientation: 'portrait'}); +} +``` + ## API