feat(local-notifications): Added local additional local notification action fields (#2713)

This commit is contained in:
iAmMrHands 2018-09-15 16:37:24 +08:00 committed by Daniel Sogl
parent 7047920a2a
commit 267149b16f

View File

@ -122,10 +122,15 @@ export interface ILocalNotificationAction {
title?: string;
/**
* Specifies whether the action causes the app to launch in the foreground
* Make this notification show when app in foreground.
*/
foreground?: boolean;
/**
* Specifies whether the action causes the app to launch in the foreground
*/
launch?: boolean;
/**
* If the value is 'decline' the action is displayed with special highlighting to indicate that it performs a destructive task
*/
@ -143,6 +148,24 @@ export interface ILocalNotificationAction {
*/
icon?: string;
/**
* ANDROID ONLY
* An array of pre-defined choices for users input
*/
choices?: string[];
/**
* ANDROID ONLY
* Specifies whether the user can provide arbitrary text values
*/
editable?: boolean;
/**
* IOS ONLY
* The title of the text input button that is displayed to the user.
*/
submitTitle?: string;
/**
* The type of the action. If omitted 'button' is used.
*/