Exemple #1
0
 public static void CallOnMainThread(this AndroidJavaProxy proxy, Action action)
 {
     if (!HMSDispatcher.InstanceExists)
     {
         HMSDispatcher.CreateDispatcher();
     }
     HMSDispatcher.InvokeAsync(action);
 }
 public JavaObjectWrapper(AndroidJavaObject javaObject)
 {
     JavaObject = javaObject;
     HMSDispatcher.CreateDispatcher();
 }
 internal protected JavaObjectWrapper(string javaObjectCanonicalName, params object[] args)
 {
     JavaObject = new AndroidJavaObject(javaObjectCanonicalName, args.AsAutoParams());
     HMSDispatcher.CreateDispatcher();
 }