docs(background-mode): add missing return types

This commit is contained in:
Daniel 2018-04-08 19:04:37 +02:00
parent c26735f366
commit 64cbb6181a

View File

@ -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';
/** /**
@ -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']