コード例 #1
0
    /// <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);
    }
コード例 #2
0
ファイル: LocationManager.cs プロジェクト: keaizp/school-game
    public void onReceive(AndroidJavaObject [] javaArgs)
    {
        AndroidJavaObject Context = javaArgs[0];
        AndroidJavaObject Intent  = javaArgs[1];
        mTask             item    = new mTask {
            Context = context, Intent = intent
        };

        taskQueue.Enqueue(item);
    }
コード例 #3
0
    /// <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);
    }