public class SiriShortcut
extends Object
Constructor and Description |
---|
SiriShortcut() |
Modifier and Type | Method and Description |
---|---|
String |
getActivityType()
Returns the siri shortcut activity type.
|
String |
getPersistentIdentifier()
Gets the persistent identifier for the shortcut
The persistent identifier is used to uniquely identify a shortcut across permutations.
|
String |
getSuggestedInvocationPhrase()
Gets the suggested invocation phrase.
|
String |
getSystemIdentifier()
Gets the shortcut system identifier
The system identifier is assigned by iOS when a shortcut is added.
|
String |
getTitle()
Returns the title of the shortcut
|
java.util.Map<String,Object> |
getUserInfo()
Gets a user map of values that are persisted with the shortcut and delivered with the shortcut's invocation.
|
boolean |
isEligibleForPrediction() |
boolean |
isEligibleForSearch() |
void |
setEligibleForPrediction(boolean isEligibleForPrediction)
Sets whether Siri can suggest the user activity as a shortcut to the user.
|
void |
setEligibleForSearch(boolean isEligibleForSearch)
Sets whether the shortcut can returned during device searches
|
void |
setPersistentIdentifier(String persistentIdentifier)
Sets the persistent identifier for the shortcut
The persistent identifier is used to uniquely identify a shortcut across permutations.
|
void |
setSuggestedInvocationPhrase(String suggestedInvocationPhrase)
Sets the suggested invocation phrase.
|
void |
setSystemIdentifier(String systemIdentifier)
Sets the system identifier for the shortcut
The system identifier is assigned by iOS when a shortcut is added.
|
void |
setTitle(String title)
Set the shortcut title
|
void |
setUserInfo(java.util.Map<String,Object> userInfo)
Sets a user map of values that are persisted with the shortcut and delivered with the shortcut's invocation.
|
public String getActivityType()
public void setPersistentIdentifier(String persistentIdentifier)
persistentIdentifier
- The persistent identifierpublic String getPersistentIdentifier()
public void setTitle(String title)
title
- the new titlepublic String getTitle()
public void setSuggestedInvocationPhrase(String suggestedInvocationPhrase)
suggestedInvocationPhrase
- the suggested invocation phrasepublic String getSuggestedInvocationPhrase()
public void setEligibleForSearch(boolean isEligibleForSearch)
isEligibleForSearch
- whether the shortcut appears in search resultspublic boolean isEligibleForSearch()
public void setEligibleForPrediction(boolean isEligibleForPrediction)
isEligibleForPrediction
- whether eligible for predictionpublic boolean isEligibleForPrediction()
public void setUserInfo(java.util.Map<String,Object> userInfo)
userInfo
- The map of user info to store with the shortcut. May be null.public java.util.Map<String,Object> getUserInfo()
public void setSystemIdentifier(String systemIdentifier)
systemIdentifier
- sytem identiferpublic String getSystemIdentifier()