File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/@ionic-native/plugins/siri-shortcuts Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,15 @@ export interface SiriShortcutOptions extends SiriShortcut {
13
13
isEligibleForPrediction ?: boolean ;
14
14
}
15
15
16
+ export interface ActivatedShortcutOptions {
17
+ clear ?: boolean ;
18
+ }
19
+
16
20
/**
17
21
* @beta
18
22
* @name Siri Shortcuts
19
23
* @description
20
- * This plugin only works when your app is built with XCode 10 Beta . Shortcuts will only appear on iOS-versions >= 12.0
24
+ * This plugin only works when your app is built with XCode 10. Shortcuts will only appear on iOS-versions >= 12.0
21
25
*
22
26
* This plugin enables the use of Siri shortcuts in Cordova. Siri Shortcuts enable the user to perform certain actions by adding them to Siri.
23
27
* After you have donated a shortcut to Siri, it will appear in the settings menu, after which the user is able to add the action. You can check
@@ -71,6 +75,7 @@ export interface SiriShortcutOptions extends SiriShortcut {
71
75
* @interfaces
72
76
* SiriShortcut
73
77
* SiriShortcutOptions
78
+ * ActivatedShortcutOptions
74
79
*/
75
80
@Plugin ( {
76
81
pluginName : 'SiriShortcuts' ,
@@ -134,10 +139,12 @@ export class SiriShortcuts extends IonicNativePlugin {
134
139
135
140
/**
136
141
* Get the current clicked user activity, and return `null` if none
142
+ * @param {ActivatedShortcutOptions|null } options Options to specify for getting the shortcut
143
+ * @param {boolean } options.clear Clear the currently activated shortcut, defaults to true
137
144
* @return Promise<SiriShortcut|null>
138
145
*/
139
146
@Cordova ( )
140
- getActivatedShortcut ( ) : Promise < SiriShortcut | null > {
147
+ getActivatedShortcut ( options ?: ActivatedShortcutOptions ) : Promise < SiriShortcut | null > {
141
148
return ;
142
149
}
143
150
}
You can’t perform that action at this time.
0 commit comments