Upsight logo Back to top

Event Reference

badgeCountRequestFailedEvent

Description


This event is fired when a getContentBadgeNumber request fails or if the provided placement does not contain a badge count.

badgeCountRequestFailedEvent

Signature


   public static event Action<string> badgeCountRequestFailedEvent;

badgeCountRequestFailedEvent

Parameter Types


TypeDescription
stringThe error.

badgeCountRequestSucceededEvent

Description


This event is fired when a call to getContentBadgeNumber succeeds. It includes the badge count.

badgeCountRequestSucceededEvent

Signature


public static event Action<int> badgeCountRequestSucceededEvent;

badgeCountRequestSucceededEvent

Parameter Types


TypeDescription
intThe badge count.

contentDidDisplayEvent

Description


This event is fired after content is displayed. It includes the placement.

Note This event is iOS only.

contentDidDisplayEvent

Signature


public static event Action<string> contentDidDisplayEvent;

contentDidDisplayEvent

Parameter Types


TypeDescription
stringThe placement.

contentDismissedEvent

Description


Fired whenever content is dismissed. It includes the Placement ID and the dismiss type.

contentDismissedEvent

Signature


public static event Action<string, string> contentDismissedEvent;

contentDismissedEvent

Parameter Types


TypeDescription
stringThe Placement ID.
stringThe dismiss type.

contentPreloadFailedEvent

Description


This event is fired when a content preload fails. It includes the placement and error.

contentPreloadFailedEvent

Signature


public static event Action<string, string> contentPreloadFailedEvent;

contentPreloadFailedEvent

Parameter Types


TypeDescription
stringThe placement.
stringThe error.

contentPreloadSucceededEvent

Description


This event is fired when a content preload succeeds. It includes the placement.

contentPreloadSucceededEvent

Signature


public static event Action<string> contentPreloadSucceededEvent;

contentPreloadSucceededEvent

Parameter Types


TypeDescription
stringThe placement.

contentRequestFailedEvent

Description


This event is fired when a content request loads. It includes the placement and error.

contentRequestFailedEvent

Signature


public static event Action<string, string> contentRequestFailedEvent;

contentRequestFailedEvent

Parameter Types


TypeDescription
stringThe placement.
stringThe error.

contentRequestLoadedEvent

Description


This event is fired when a content request loads. It includes the placement.

contentRequestLoadedEvent

Signature


public static event Action<string> contentRequestLoadedEvent;

contentRequestLoadedEvent

Parameter Types


TypeDescription
stringThe placement.

contentWillDisplayEvent

Description


This event is fired when content will be displayed. It includes the placement.

contentWillDisplayEvent

Signature


public static event Action<string> contentWillDisplayEvent;

contentWillDisplayEvent

Parameter Types


TypeDescription
stringThe placement.

makePurchaseEvent

Description


This event is fired when a request to make a purchase occurs. It includes the Purchase.

makePurchaseEvent

Signature


public static event Action<UpsightPurchase> makePurchaseEvent;

makePurchaseEvent

Parameter Types


TypeDescription
UpsightPurchaseThe purchase.

openRequestFailedEvent

Description


This event is fired when an open request fails. It includes a string with the error.

openRequestFailedEvent

Signature


public static event Action<string> openRequestFailedEvent;

openRequestFailedEvent

Parameter Types


TypeDescription
stringThe error.

openRequestSucceededEvent

Description


This event is fired when an open request succeeds. It includes a Dictionary of all data returned.

openRequestSucceededEvent

Signature


public static event Action<Dictionary<string,object>> openRequestSucceededEvent;

openRequestSucceededEvent

Parameter Types


TypeDescription
Dictionary<string,object>All data returned.

pushNotificationWithContentReceivedEvent

Description


This event is fired when a push notification that contains content is received. It includes the Message ID and the Content Unit ID. These can be passed to the sendContentRequestWithContentUnitID method to display the content.

Note This event is iOS only.

pushNotificationWithContentReceivedEvent

Signature


public static event Action<string,string> pushNotificationWithContentReceivedEvent;

pushNotificationWithContentReceivedEvent

Parameter Types


TypeDescription
stringThe Message ID.
stringThe Content Unit ID.

pushNotificationWithUrlReceivedEvent

Description


This event is fired when a push notification that contains a URL is received. It includes the url.

Note This event is iOS only.

pushNotificationWithUrlReceivedEvent

Signature


public static event Action<string> pushNotificationWithUrlReceivedEvent;

pushNotificationWithUrlReceivedEvent

Parameter Types


TypeDescription
stringThe url.

reportCustomEventFailedEvent

Description


This event is fired when the reporting of a custom event fails. It includes the error.

reportCustomEventFailedEvent

Signature


public static event Action<string> reportCustomEventFailedEvent;

reportCustomEventFailedEvent

Parameter Types


TypeDescription
stringThe error.

reportCustomEventSucceededEvent

Description


This event is fired when the reporting of a custom event succeeds.

reportCustomEventSucceededEvent

Signature


public static event Action reportCustomEventSucceededEvent;

reportCustomEventSucceededEvent

Parameter Types


No Parameter Accepted

trackInAppPurchaseSucceededEvent

Description


This event is fired when an In-App Purchase succeeds.

trackInAppPurchaseSucceededEvent

Signature


public static event Action trackInAppPurchaseSucceededEvent;

trackInAppPurchaseSucceededEvent

Parameter Types


No Parameter Accepted

trackInAppPurchaseFailedEvent

Description


This event is fired when tracking an IAP fails. It includes the error.

trackInAppPurchaseFailedEvent

Signature


public static event Action<string> trackInAppPurchaseFailedEvent;

trackInAppPurchaseFailedEvent

Parameter Types


TypeDescription
stringThe error.

unlockedRewardEvent

Description


This event is fired when a reward is unlocked. It includes the Upsight reward object.

unlockedRewardEvent

Signature


public static event Action<UpsightReward> unlockedRewardEvent;

unlockedRewardEvent

Parameter Types


TypeDescription
UpsightRewardThe Upsight reward object.