From 234165c294e3fb9988c9cb2d4ec78cd33a0fe63a Mon Sep 17 00:00:00 2001 From: Prabesh Niraula Date: Mon, 20 Mar 2017 16:10:35 -0400 Subject: [PATCH] feat(music-controls): add missing options --- src/plugins/music-controls.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/plugins/music-controls.ts b/src/plugins/music-controls.ts index 4f8aaa4468..da4c14db2b 100644 --- a/src/plugins/music-controls.ts +++ b/src/plugins/music-controls.ts @@ -10,6 +10,9 @@ export interface MusicControlsOptions { hasPrev: boolean; hasNext: boolean; hasClose: boolean; + album:string; + duration: number; + elapsed:number; ticker: string; } @@ -37,7 +40,12 @@ export interface MusicControlsOptions { * hasPrev : false, // show previous button, optional, default: true * hasNext : false, // show next button, optional, default: true * hasClose : true, // show close button, optional, default: false - * + * + * // iOS only, optional + * album : 'Absolution' // optional, default: '' + * duration : 60, // optional, default: 0 + * elapsed : 10, // optional, default: 0 + * * // Android only, optional * // text displayed in the status bar when the notification (and the ticker) are updated * ticker : 'Now playing "Time is Running Out"'