mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Improvements on documentation (#340)
* Improvements on documentation and some refactor * ts | js -> typescript (docs)
This commit is contained in:
committed by
Ibrahim Hadeed
parent
d4d30ab9c9
commit
7952f9ef60
@@ -6,13 +6,12 @@ import { Cordova, Plugin } from './plugin';
|
||||
* @description
|
||||
* @usage
|
||||
* ```
|
||||
* import {SafariViewController} from 'ionic-native';
|
||||
* import { SafariViewController } from 'ionic-native';
|
||||
*
|
||||
* ...
|
||||
*
|
||||
* SafariViewController.isAvailable()
|
||||
* .then(
|
||||
* (available) => {
|
||||
* (available: boolean) => {
|
||||
* if(available){
|
||||
*
|
||||
* SafariViewController.show({
|
||||
@@ -25,9 +24,9 @@ import { Cordova, Plugin } from './plugin';
|
||||
* })
|
||||
* .then(
|
||||
* (result: any) => {
|
||||
* if(result.event === 'opened') console.log("Opened");
|
||||
* else if(result.event === 'loaded') console.log("Loaded");
|
||||
* else if(result.event === 'closed') console.log("Closed");
|
||||
* if(result.event === 'opened') console.log('Opened');
|
||||
* else if(result.event === 'loaded') console.log('Loaded');
|
||||
* else if(result.event === 'closed') console.log('Closed');
|
||||
* },
|
||||
* (error: any) => console.error(error)
|
||||
* );
|
||||
|
||||
Reference in New Issue
Block a user