mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
Merge branch 'master' of github.com:driftyco/ionic-native
This commit is contained in:
commit
602f14771c
@ -32,9 +32,9 @@ export interface DeeplinkMatch {
|
|||||||
* ```typescript
|
* ```typescript
|
||||||
* import { Deeplinks } from '@ionic-native/deeplinks';
|
* import { Deeplinks } from '@ionic-native/deeplinks';
|
||||||
*
|
*
|
||||||
* constructor(private deepLinks: DeepLinks) { }
|
* constructor(private deeplinks: Deeplinks) { }
|
||||||
*
|
*
|
||||||
* this.deepLinks.route({
|
* this.deeplinks.route({
|
||||||
* '/about-us': AboutPage,
|
* '/about-us': AboutPage,
|
||||||
* '/universal-links-test': AboutPage,
|
* '/universal-links-test': AboutPage,
|
||||||
* '/products/:productId': ProductPage
|
* '/products/:productId': ProductPage
|
||||||
@ -53,7 +53,7 @@ export interface DeeplinkMatch {
|
|||||||
* the actual navigation for you:
|
* the actual navigation for you:
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* this.deepLinks.routeWithNavController(this.navController, {
|
* this.deeplinks.routeWithNavController(this.navController, {
|
||||||
* '/about-us': AboutPage,
|
* '/about-us': AboutPage,
|
||||||
* '/products/:productId': ProductPage
|
* '/products/:productId': ProductPage
|
||||||
* }).subscribe((match) => {
|
* }).subscribe((match) => {
|
||||||
|
@ -14,7 +14,7 @@ export class MediaObject {
|
|||||||
* @param src {string} A URI containing the audio content.
|
* @param src {string} A URI containing the audio content.
|
||||||
* @param onStatusUpdate {Function} A callback function to be invoked when the status of the file changes
|
* @param onStatusUpdate {Function} A callback function to be invoked when the status of the file changes
|
||||||
*/
|
*/
|
||||||
constructor(private _objectInstnace: any) {}
|
constructor(private _objectInstance: any) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the current amplitude of the current recording.
|
* Get the current amplitude of the current recording.
|
||||||
@ -256,7 +256,8 @@ export class MediaPlugin {
|
|||||||
// Creates a new media object
|
// Creates a new media object
|
||||||
// Resolves with the media object
|
// Resolves with the media object
|
||||||
// or rejects with the error
|
// or rejects with the error
|
||||||
const instance = new Media(src, () => resolve(new Media(instance)), reject, onStatusUpdate);
|
const instance = new Media(src, resolve, reject, onStatusUpdate);
|
||||||
|
return resolve(new MediaObject(instance));
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ export interface ToastOptions {
|
|||||||
*
|
*
|
||||||
* ...
|
* ...
|
||||||
*
|
*
|
||||||
* thisoast.show("I'm a toast", '5000', 'center').subscribe(
|
* this.toast.show("I'm a toast", '5000', 'center').subscribe(
|
||||||
* toast => {
|
* toast => {
|
||||||
* console.log(toast);
|
* console.log(toast);
|
||||||
* }
|
* }
|
||||||
|
Loading…
Reference in New Issue
Block a user