/// <summary> /// public void onReceive(Context context, Intent intent) /// </summary> /// <param name="context">Context.</param> /// <param name="intent">Intent.</param> public void onReceive(AndroidJavaObject context, AndroidJavaObject intent) { mTask item = new mTask { Context = context, Intent = intent }; taskQueue.Enqueue(item); }
public void onReceive(AndroidJavaObject [] javaArgs) { AndroidJavaObject Context = javaArgs[0]; AndroidJavaObject Intent = javaArgs[1]; mTask item = new mTask { Context = context, Intent = intent }; taskQueue.Enqueue(item); }
/// <summary> /// public void onReceive(Context context, Intent intent) /// </summary> /// <param name="context">Context.</param> /// <param name="intent">Intent.</param> void onReceive(AndroidJavaObject context, AndroidJavaObject intent) { Debug.Log("Unity has onReceive"); Debug.Log("Unity context:" + context); Debug.Log("Unity intent:" + intent); mTask item = new mTask { Context = context, Intent = intent }; taskQueue.Enqueue(item); Debug.Log(taskQueue.Count); }