mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 00:12:53 +08:00
docs(): add example on how to use onChange() method (#1726)
This commit is contained in:
parent
f289a6bbb6
commit
3af23023ee
@ -26,8 +26,16 @@ import { Observable } from 'rxjs/Observable';
|
|||||||
*
|
*
|
||||||
* // allow user rotate
|
* // allow user rotate
|
||||||
* this.screenOrientation.unlock();
|
* this.screenOrientation.unlock();
|
||||||
* ```
|
|
||||||
*
|
*
|
||||||
|
* // detect orientation changes
|
||||||
|
* this.screenOrientation.onChange().subscribe(
|
||||||
|
* () => {
|
||||||
|
* console.log("Orientation Changed");
|
||||||
|
* }
|
||||||
|
* );
|
||||||
|
*
|
||||||
|
* ```
|
||||||
|
*
|
||||||
* @advanced
|
* @advanced
|
||||||
*
|
*
|
||||||
* Accepted orientation values:
|
* Accepted orientation values:
|
||||||
|
Loading…
Reference in New Issue
Block a user