From 1739959daf05df776f540df2089051cc95862607 Mon Sep 17 00:00:00 2001 From: Ferdy Fauzi Date: Thu, 12 Dec 2024 13:26:38 +0800 Subject: [PATCH] Update README.md --- screen-orientation/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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