public unsafe DrmInitDataUniversal(global::Com.Google.Android.Exoplayer.Drm.DrmInitDataSchemeInitData p0)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);
                if (GetType() != typeof(DrmInitDataUniversal))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lcom/google/android/exoplayer/drm/DrmInitData$SchemeInitData;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/google/android/exoplayer/drm/DrmInitData$SchemeInitData;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/google/android/exoplayer/drm/DrmInitData$SchemeInitData;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_, __args);
            } finally {
            }
        }
        public unsafe global::Com.Google.Android.Exoplayer.Drm.DrmInitDataSchemeInitData Get(global::Java.Util.UUID p0)
        {
            if (id_get_Ljava_util_UUID_ == IntPtr.Zero)
            {
                id_get_Ljava_util_UUID_ = JNIEnv.GetMethodID(class_ref, "get", "(Ljava/util/UUID;)Lcom/google/android/exoplayer/drm/DrmInitData$SchemeInitData;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            global::Com.Google.Android.Exoplayer.Drm.DrmInitDataSchemeInitData __ret = global::Java.Lang.Object.GetObject <global::Com.Google.Android.Exoplayer.Drm.DrmInitDataSchemeInitData> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_get_Ljava_util_UUID_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
 public unsafe void Put(global::Java.Util.UUID p0, global::Com.Google.Android.Exoplayer.Drm.DrmInitDataSchemeInitData p1)
 {
     if (id_put_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_ == IntPtr.Zero)
     {
         id_put_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_ = JNIEnv.GetMethodID(class_ref, "put", "(Ljava/util/UUID;Lcom/google/android/exoplayer/drm/DrmInitData$SchemeInitData;)V");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_put_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_, __args);
     } finally {
     }
 }
Ejemplo n.º 4
0
        public unsafe ContentProtection(string p0, global::Java.Util.UUID p1, global::Com.Google.Android.Exoplayer.Drm.DrmInitDataSchemeInitData p2)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                if (GetType() != typeof(ContentProtection))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Ljava/lang/String;Ljava/util/UUID;Lcom/google/android/exoplayer/drm/DrmInitData$SchemeInitData;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/util/UUID;Lcom/google/android/exoplayer/drm/DrmInitData$SchemeInitData;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/util/UUID;Lcom/google/android/exoplayer/drm/DrmInitData$SchemeInitData;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }