References

This document features the references for now.gg Events Module.

Native Android

This section contains the references related for now.gg Events module for native Andoird.

NowGGEventsSdkManager

The NowGGEventsSdkManager class provides the public methods to send events/commands to your app/game.

Property:
getInstance() - Returns the instance of the class.
Methods:

1. sendEventToBrowser

This method is used to send the event information to your HTML Page.

Params Type Summary
eventName string Name of the event to be sent to the HTML page.
eventData string The payload of the event to be sent to the HTML page.
activityContext Activity Provides the context of the activity used to perform this operation.

Note: As the function intended for transferring data to the HTML is generic, ensure to serialize and deserialize eventData according to your requirements.

2. getAppLaunchDataBundle

This method is used to retrieve a dictionary/bundle of all app launch data parameters.

Params Type Summary
activityContext Activity Provides the context of the activity used to perform this operation.

3. getAppLaunchDataProperty

This method is used to retrieve a specific app launch data parameter by name.

Params Type Summary
propertyName string Parameter to be retrieved from app launch data.
activityContext Activity Provides the context of the activity used to perform this operation.


Unity

This section contains the references related for now.gg Events module for Unity.

NowGGEventsSdkManager

The NowGGEventsSdkManager class provides the public methods to send events/commands to your app/game.

Property:
Instance - Returns the instance of the class.
Methods:

1. OpenURL

This method is used to open the specified URL in a new browser window.

Params Type Summary
url string Opens the provided URL in a new browser window.

2. SendEventToBrowser

This method is used to send the event information to your HTML Page.

Params Type Summary
eventName string Name of the event to be sent to the HTML page.
eventData string The payload of the event to be sent to the HTML page.

Note: As the function intended for transferring data to the HTML is generic, ensure to serialize and deserialize eventData according to your requirements.

3. GetAppLaunchDataDictionary

This method is used to retrieve a dictionary of all app launch data parameters.

4. GetAppLaunchDataProperty

This method is used to retrieve a specific app launch data parameter by name.

Params Type Summary
propertyName string Parameter to be retrieved from app launch data.
×

Document Rev. 1.0

Text copied to clipboard
Link copied to clipbord
Questions? Please reach out to us at dev-support@now.gg