Class QueryLastRespondedNotificationOp
An operation for retrieving notification used to open the app. When app is not running, app launches first and then notification is delivered. There may be a delay until notification is delivered. This operation may finish immediately or it may require a few frames to pass. You can return it from coroutine to wait until completion.
Implements
Inherited Members
CustomYieldInstruction.MoveNext()
CustomYieldInstruction.Reset()
CustomYieldInstruction.Current
Namespace: Unity.Notifications.iOS
Assembly: Unity.Notifications.iOS.dll
Syntax
public class QueryLastRespondedNotificationOp : CustomYieldInstruction, IEnumerator
Properties
ActionId
The ID of the action that the user responded to or null if notification had no actions or no notification was responded to.
Declaration
public string ActionId { get; }
Property Value
Type | Description |
---|---|
string |
Notification
Returns a notification the was used to open the app or null if app was launched normally.
Declaration
public iOSNotification Notification { get; }
Property Value
Type | Description |
---|---|
iOSNotification |
State
The state of the operation.
Declaration
public QueryLastRespondedNotificationState State { get; }
Property Value
Type | Description |
---|---|
QueryLastRespondedNotificationState |
UserText
The text entered by user when responding to notification using a text input action.
Declaration
public string UserText { get; }
Property Value
Type | Description |
---|---|
string |
keepWaiting
Indicates if coroutine should be kept suspended.
Declaration
public override bool keepWaiting { get; }
Property Value
Type | Description |
---|---|
bool |