Skip Navigation

Assign IGDEventListener and IGDStateListener implementations to the Android class

In your app file, usually defined as
path_to_your_project
/app.cs
, assign the static
IGDEventListener
and
IGDStateListener
implementations to the
GDAndroid
class.
Authorization occurs after
OnCreate
method completes. Any interaction with the
BlackBerry Dynamics Runtime
outside of authorization within this method results in an exception.
[Application] public class GoodApplication : Application { public GoodApplication (IntPtr handle, JniHandleOwnership transfer) : base (handle, transfer) { // do any initialisation you want here (for example initialising properties) } public override void OnCreate () { base.OnCreate (); GDAndroid.Instance.SetGDAppEventListener (GDEventListener.Instance); GDAndroid.Instance.SetGDStateListener(GDStateListener.Instance); … } }