mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
docs(): add example on how to use onChange() method (#1726)
This commit is contained in:
parent
f289a6bbb6
commit
3af23023ee
@ -26,6 +26,14 @@ 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
|
||||||
|
Loading…
Reference in New Issue
Block a user