UserWise Unity SDK  3.0.0
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
UserWiseSDK.Common.Unity.UWHandlerGameObject Class Reference

UWHandlerGameObject is a game object that contains a reference to an instance of UWProxyEventHandler. UWProxyEventHandler acts as a proxy between c# and the native [android (java) or ios (obj-c)] event listeners. More...

Classes

class  UWProxyEventHandler
 UWProxyEventHandler acts as a proxy event handler for all supported UserWise unity runtime platforms. Both native android and ios code will call the methods below via the UnityPlayer.UnitySendMessage method. Which in turn forwards calls to the UserWise instance surveyEvents methods. More...
 

Public Member Functions

 UWHandlerGameObject (UserWise UserWise)
 
MonoBehaviour GetEnsuredMonoBehaviour ()
 Returns our game object's UWProxyEventHandler component which is a MonoBehaviour More...
 

Static Public Member Functions

static void AttachGameObjectToNativeListener ()
 Connects our game object to our native listener. More...
 
static void DetachGameObjectFromNativeListener ()
 Disconnects our game object from our native listener. More...
 

Static Public Attributes

static readonly string GAME_OBJECT_NAME = "UserWiseGameObject"
 

Detailed Description

UWHandlerGameObject is a game object that contains a reference to an instance of UWProxyEventHandler. UWProxyEventHandler acts as a proxy between c# and the native [android (java) or ios (obj-c)] event listeners.

Member Function Documentation

◆ AttachGameObjectToNativeListener()

static void UserWiseSDK.Common.Unity.UWHandlerGameObject.AttachGameObjectToNativeListener ( )
inlinestatic

Connects our game object to our native listener.

See also
UWProxyEventHandler for information on native listeners.

◆ DetachGameObjectFromNativeListener()

static void UserWiseSDK.Common.Unity.UWHandlerGameObject.DetachGameObjectFromNativeListener ( )
inlinestatic

Disconnects our game object from our native listener.

See also
UWProxyEventHandler for information on native listeners.

◆ GetEnsuredMonoBehaviour()

MonoBehaviour UserWiseSDK.Common.Unity.UWHandlerGameObject.GetEnsuredMonoBehaviour ( )
inline

Returns our game object's UWProxyEventHandler component which is a MonoBehaviour

Returns
MonoBehaviour

The documentation for this class was generated from the following file: