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
Assembly: Unity.Notifications.Unified.dll
Syntax
public class QueryLastRespondedNotificationOp : CustomYieldInstruction, IEnumerator
Properties
Notification
Returns a notification the was used to open the app or null if app was launched normally. An exception will be thrown if operation has not been completed yet or no notification is available.
Declaration
public Notification Notification { get; }
Property Value
Type | Description |
---|---|
Notification |
State
The state of the operation.
Declaration
public QueryLastRespondedNotificationState State { get; }
Property Value
Type | Description |
---|---|
QueryLastRespondedNotificationState |
keepWaiting
Indicates if coroutine should be kept suspended.
Declaration
public override bool keepWaiting { get; }
Property Value
Type | Description |
---|---|
bool |