mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-07 23:03:19 +08:00
docs(background-mode): add missing return types
This commit is contained in:
parent
c26735f366
commit
64cbb6181a
@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -32,7 +32,7 @@ export interface BackgroundModeConfiguration {
|
|||||||
resume?: boolean;
|
resume?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When set to false makes the notifications visible on lockscreen (Android 5.0+)
|
* When set to false makes the notifications visible on lock screen (Android 5.0+)
|
||||||
*/
|
*/
|
||||||
hidden?: boolean;
|
hidden?: boolean;
|
||||||
|
|
||||||
@ -122,6 +122,7 @@ export class BackgroundMode extends IonicNativePlugin {
|
|||||||
* Override the default title, ticker and text.
|
* Override the default title, ticker and text.
|
||||||
* Available only for Android platform.
|
* Available only for Android platform.
|
||||||
* @param {BackgroundModeConfiguration} options List of option to configure. See table below
|
* @param {BackgroundModeConfiguration} options List of option to configure. See table below
|
||||||
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
platforms: ['Android']
|
platforms: ['Android']
|
||||||
@ -133,7 +134,7 @@ export class BackgroundMode extends IonicNativePlugin {
|
|||||||
/**
|
/**
|
||||||
* Modify the displayed information.
|
* Modify the displayed information.
|
||||||
* Available only for Android platform.
|
* Available only for Android platform.
|
||||||
* @param {BackgroundModeConfiguration} options Any options you want to update. See table below.
|
* @param {BackgroundModeConfiguration} [options] Any options you want to update. See table below.
|
||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
platforms: ['Android'],
|
platforms: ['Android'],
|
||||||
@ -202,6 +203,7 @@ export class BackgroundMode extends IonicNativePlugin {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The method works async instead of isActive() or isEnabled().
|
* The method works async instead of isActive() or isEnabled().
|
||||||
|
* @returns {Promise<boolean>}
|
||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
platforms: ['Android']
|
platforms: ['Android']
|
||||||
|
Loading…
Reference in New Issue
Block a user