You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`IPushSubscription PushSubscription`|*The push subscription associated to the current user.*|
128
128
|`string Language`|*Set the 2-character language either as a detected language or explicitly set for this user.*|
129
-
|`PushSubsription.Changed` <br><br> `delegate void SubscriptionChangedDelegate(IPushSubscriptionState current)` <br><br> `event SubscriptionChangedDelegate Changed`|*Adds a change event that will run whenever the push subscription has been changed.*|
129
+
|`PushSubsription.Changed` <br><br> `event EventHandler<PushSubscriptionChangedEventArgs> Changed` <br><br> `PushSubscriptionChangedEventArgs { PushSubscriptionChangedState State }`|*Adds a change event that will run whenever the push subscription has been changed.*|
130
130
|`void AddAlias(string label, string id)`|*Set an alias for the current user. If this alias already exists it will be overwritten.*|
131
131
|`void AddAliases(Dictionary<string, string> aliases)`| S*et aliases for the current user. If any alias already exists it will be overwritten.*|
132
132
|`void RemoveAlias(string label)`|*Remove an alias from the current user.*|
@@ -156,12 +156,12 @@ The notification namespace is accessible via `OneSignal.Default.Notifications` a
|`bool Permission: Boolean`|*Whether this app has push notification permission.*|
159
+
|`bool Permission`|*Whether this app has push notification permission.*|
160
160
|`Task<bool> RequestPermissionAsync(bool fallbackToSettings)`|*Prompt the user for permission to push notifications. This will display the native OS prompt to request push notification permission. If the user enables, a push subscription to this device will be automatically added to the user.*|
161
161
|`void ClearAllNotifications()`|*Removes all OneSignal notifications.*|
162
162
|`event EventHandler<NotificationPermissionChangedEventArgs> PermissionChanged` <br><br> `NotificationPermissionChangedEventArgs { bool Permission }`|*The [PermissionChanged] event will be fired when a notification permission setting changes. This happens when the user enables or disables notifications for your app from the system settings outside of your app.*|
163
-
|`event EventHandler<NotificationWillDisplayEventArgs> ForegroundWillDisplay` <br><br> `NotificationWillDisplayEventArgs { Notification Notification }`|*Set an event to fire before displaying a notification while the app is in focus. Use this event to read notification data or decide if the notification should show or not.*|
164
-
|`event EventHandler<NotificationClickEventArgs> Clicked` <br><br> `NotificationClickEventArgs { Notification Notification, NotificationClickResult Result }`|*Set an event that will fire whenever a notification is clicked on by the user.*|
163
+
|`event EventHandler<NotificationWillDisplayEventArgs> ForegroundWillDisplay` <br><br> `NotificationWillDisplayEventArgs { IDisplayableNotification Notification, void PreventDefault() }`|*Set an event to fire before displaying a notification while the app is in focus. Use this event to read notification data or decide if the notification should show or not.*|
164
+
|`event EventHandler<NotificationClickEventArgs> Clicked` <br><br> `NotificationClickEventArgs { INotification Notification, INotificationClickResult Result }`|*Set an event that will fire whenever a notification is clicked on by the user.*|
165
165
166
166
167
167
**Location Namespace**
@@ -179,13 +179,13 @@ The In App Messages namespace is accessible via `OneSignal.Default.InAppMessages
|`bool Paused`|*Whether the in app messaging is currently paused. When set to `true` no IAM will be presented to the user regardless of whether they qualify for them. When set to 'false` any IAMs the user qualifies for will be presented to the user at the appropriate time.*|
182
-
|`void AddTrigger(string key, object value)`|*Add a trigger for the current user. Triggers are currently explicitly used to determine whether a specific IAM should be displayed to the user. See [Triggers](https://documentation.onesignal.com/docs/iam-triggers).*<br><br>*If the trigger key already exists, it will be replaced with the value provided here. Note that triggers are not persisted to the backend. They only exist on the local device and are applicable to the current user.*|
183
-
|`void AddTriggers(Dictionary<string, object> triggers)`|*Add multiple triggers for the current user. Triggers are currently explicitly used to determine whether a specific IAM should be displayed to the user. See [Triggers](https://documentation.onesignal.com/docs/iam-triggers).*<br><br>*If the trigger key already exists, it will be replaced with the value provided here. Note that triggers are not persisted to the backend. They only exist on the local device and are applicable to the current user.*|
182
+
|`void AddTrigger(string key, string value)`|*Add a trigger for the current user. Triggers are currently explicitly used to determine whether a specific IAM should be displayed to the user. See [Triggers](https://documentation.onesignal.com/docs/iam-triggers).*<br><br>*If the trigger key already exists, it will be replaced with the value provided here. Note that triggers are not persisted to the backend. They only exist on the local device and are applicable to the current user.*|
183
+
|`void AddTriggers(Dictionary<string, string> triggers)`|*Add multiple triggers for the current user. Triggers are currently explicitly used to determine whether a specific IAM should be displayed to the user. See [Triggers](https://documentation.onesignal.com/docs/iam-triggers).*<br><br>*If the trigger key already exists, it will be replaced with the value provided here. Note that triggers are not persisted to the backend. They only exist on the local device and are applicable to the current user.*|
184
184
|`void RemoveTrigger(string key)`|*Remove the trigger with the provided key from the current user.*|
185
185
|`void RemoveTriggers(params string[] keys)`|*Remove multiple triggers from the current user.*|
186
186
|`void ClearTriggers()`|*Clear all triggers from the current user.*|
|`event EventHandler<InAppMessageClickEventArgs> Clicked` <br><br> `InAppMessageClickEventArgs { InAppMessage Message, InAppMessageClickResult Result }`|*Set the IAM click events.*|
|`event EventHandler<InAppMessageClickEventArgs> Clicked` <br><br> `InAppMessageClickEventArgs { IInAppMessage Message, IInAppMessageClickResult Result }`|*Set the IAM click events.*|
0 commit comments