This document features the references for now.gg Events Module.
This section contains the references related for now.gg Events module for native Andoird.
The NowGGEventsSdkManager
class provides the public methods to send events/commands to your app/game.
getInstance() - Returns the instance of the class.
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.
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. |
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. |
This section contains the references related for now.gg Events module for Unity.
The NowGGEventsSdkManager
class provides the public methods to send events/commands to your app/game.
Instance - Returns the instance of the class.
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. |
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.
This method is used to retrieve a dictionary of all app launch data parameters.
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. |
Events Module
Events Module
Document Rev. 1.0