예제 #1
0
 static void n_OnError_Lcn_sharesdk_framework_Platform_ILjava_lang_Throwable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, IntPtr native_p2)
 {
     global::CN.Sharesdk.Framework.IPlatformActionListener __this = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.IPlatformActionListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::CN.Sharesdk.Framework.Platform p0 = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Throwable            p2 = global::Java.Lang.Object.GetObject <global::Java.Lang.Throwable> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.OnError(p0, p1, p2);
 }
 static void n_OnError_Lcn_sharesdk_framework_Platform_ILjava_lang_Throwable_(IntPtr jnienv, IntPtr native__this, IntPtr native_platform, int action, IntPtr native_t)
 {
     global::CN.Sharesdk.Framework.ReflectablePlatformActionListener __this = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.ReflectablePlatformActionListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::CN.Sharesdk.Framework.Platform platform = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform> (native_platform, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Throwable            t        = global::Java.Lang.Object.GetObject <global::Java.Lang.Throwable> (native_t, JniHandleOwnership.DoNotTransfer);
     __this.OnError(platform, action, t);
 }
예제 #3
0
 static void n_OnShare_Lcn_sharesdk_framework_Platform_Lcn_sharesdk_framework_Platform_ShareParams_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::CN.Sharesdk.Onekeyshare.IShareContentCustomizeCallback __this = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Onekeyshare.IShareContentCustomizeCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::CN.Sharesdk.Framework.Platform             p0 = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::CN.Sharesdk.Framework.Platform.ShareParams p1 = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform.ShareParams> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnShare(p0, p1);
 }
예제 #4
0
 static void n_OnError_Lcn_sharesdk_framework_Platform_ILjava_lang_Throwable_(IntPtr jnienv, IntPtr native__this, IntPtr native_plat, int action, IntPtr native_t)
 {
     global::CN.Sharesdk.Onekeyshare.Themes.Classic.FriendAdapter __this = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Onekeyshare.Themes.Classic.FriendAdapter>(jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::CN.Sharesdk.Framework.Platform plat = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform>(native_plat, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Throwable            t    = global::Java.Lang.Object.GetObject <global::Java.Lang.Throwable>(native_t, JniHandleOwnership.DoNotTransfer);
     __this.OnError(plat, action, t);
 }
예제 #5
0
        static void n_OnComplete_Lcn_sharesdk_framework_Platform_ILjava_util_HashMap_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, IntPtr native_p2)
        {
            global::CN.Sharesdk.Framework.IPlatformActionListener __this = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.IPlatformActionListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::CN.Sharesdk.Framework.Platform p0 = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform> (native_p0, JniHandleOwnership.DoNotTransfer);
            var p2 = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Object> .FromJniHandle(native_p2, JniHandleOwnership.DoNotTransfer);

            __this.OnComplete(p0, p1, p2);
        }
예제 #6
0
        static void n_OnComplete_Lcn_sharesdk_framework_Platform_ILjava_util_HashMap_(IntPtr jnienv, IntPtr native__this, IntPtr native_plat, int action, IntPtr native_res)
        {
            global::CN.Sharesdk.Onekeyshare.Themes.Classic.FriendAdapter __this = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Onekeyshare.Themes.Classic.FriendAdapter>(jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::CN.Sharesdk.Framework.Platform plat = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform>(native_plat, JniHandleOwnership.DoNotTransfer);
            var res = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Object> .FromJniHandle(native_res, JniHandleOwnership.DoNotTransfer);

            __this.OnComplete(plat, action, res);
        }
예제 #7
0
 static void n_ShowEditPage_Landroid_content_Context_Lcn_sharesdk_framework_Platform_Lcn_sharesdk_framework_Platform_ShareParams_(IntPtr jnienv, IntPtr native__this, IntPtr native_context, IntPtr native_platform, IntPtr native_sp)
 {
     global::CN.Sharesdk.Onekeyshare.Themes.Classic.ClassicTheme __this = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Onekeyshare.Themes.Classic.ClassicTheme> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Content.Context                    context         = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_context, JniHandleOwnership.DoNotTransfer);
     global::CN.Sharesdk.Framework.Platform             platform        = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform> (native_platform, JniHandleOwnership.DoNotTransfer);
     global::CN.Sharesdk.Framework.Platform.ShareParams sp = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform.ShareParams> (native_sp, JniHandleOwnership.DoNotTransfer);
     __this.ShowEditPage(context, platform, sp);
 }
 static void n_ShowEditPage_Landroid_content_Context_Lcn_sharesdk_framework_Platform_Lcn_sharesdk_framework_Platform_ShareParams_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
 {
     global::CN.Sharesdk.Onekeyshare.OnekeyShareThemeImpl __this = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Onekeyshare.OnekeyShareThemeImpl> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Content.Context                    p0       = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::CN.Sharesdk.Framework.Platform             p1       = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform> (native_p1, JniHandleOwnership.DoNotTransfer);
     global::CN.Sharesdk.Framework.Platform.ShareParams p2       = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform.ShareParams> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.ShowEditPage(p0, p1, p2);
 }
예제 #9
0
#pragma warning restore 0649

        public void OnCancel(global::CN.Sharesdk.Framework.Platform p0, int p1)
        {
            var __h = OnCancelHandler;

            if (__h != null)
            {
                __h(sender, new CancelEventArgs(p0, p1));
            }
        }
예제 #10
0
#pragma warning restore 0649

        public void OnComplete(global::CN.Sharesdk.Framework.Platform p0, int p1, global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Object> p2)
        {
            var __h = OnCompleteHandler;

            if (__h != null)
            {
                __h(sender, new CompleteEventArgs(p0, p1, p2));
            }
        }
예제 #11
0
#pragma warning restore 0649

        public void OnError(global::CN.Sharesdk.Framework.Platform p0, int p1, global::Java.Lang.Throwable p2)
        {
            var __h = OnErrorHandler;

            if (__h != null)
            {
                __h(sender, new ErrorEventArgs(p0, p1, p2));
            }
        }
        public virtual unsafe void SetPlatform(global::CN.Sharesdk.Framework.Platform platform)
        {
            const string __id = "setPlatform.(Lcn/sharesdk/framework/Platform;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((platform == null) ? IntPtr.Zero : ((global::Java.Lang.Object)platform).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
        public unsafe void OnCancel(global::CN.Sharesdk.Framework.Platform platform, int action)
        {
            const string __id = "onCancel.(Lcn/sharesdk/framework/Platform;I)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((platform == null) ? IntPtr.Zero : ((global::Java.Lang.Object)platform).Handle);
                __args [1] = new JniArgumentValue(action);
                _members.InstanceMethods.InvokeNonvirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
예제 #14
0
        protected unsafe bool IsUseClientToShare(global::CN.Sharesdk.Framework.Platform platform)
        {
            const string __id = "isUseClientToShare.(Lcn/sharesdk/framework/Platform;)Z";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((platform == null) ? IntPtr.Zero : ((global::Java.Lang.Object)platform).Handle);
                var __rm = _members.InstanceMethods.InvokeNonvirtualBooleanMethod(__id, this, __args);
                return(__rm);
            } finally {
            }
        }
예제 #15
0
        public unsafe void OnShare(global::CN.Sharesdk.Framework.Platform p0, global::CN.Sharesdk.Framework.Platform.ShareParams p1)
        {
            if (id_onShare_Lcn_sharesdk_framework_Platform_Lcn_sharesdk_framework_Platform_ShareParams_ == IntPtr.Zero)
            {
                id_onShare_Lcn_sharesdk_framework_Platform_Lcn_sharesdk_framework_Platform_ShareParams_ = JNIEnv.GetMethodID(class_ref, "onShare", "(Lcn/sharesdk/framework/Platform;Lcn/sharesdk/framework/Platform$ShareParams;)V");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onShare_Lcn_sharesdk_framework_Platform_Lcn_sharesdk_framework_Platform_ShareParams_, __args);
        }
예제 #16
0
        public unsafe void OnCancel(global::CN.Sharesdk.Framework.Platform p0, int p1)
        {
            if (id_onCancel_Lcn_sharesdk_framework_Platform_I == IntPtr.Zero)
            {
                id_onCancel_Lcn_sharesdk_framework_Platform_I = JNIEnv.GetMethodID(class_ref, "onCancel", "(Lcn/sharesdk/framework/Platform;I)V");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue(p1);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onCancel_Lcn_sharesdk_framework_Platform_I, __args);
        }
예제 #17
0
        public static unsafe void LogDemoEvent(int id, global::CN.Sharesdk.Framework.Platform platform)
        {
            const string __id = "logDemoEvent.(ILcn/sharesdk/framework/Platform;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(id);
                __args [1] = new JniArgumentValue((platform == null) ? IntPtr.Zero : ((global::Java.Lang.Object)platform).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
            }
        }
예제 #18
0
        public unsafe void OnError(global::CN.Sharesdk.Framework.Platform p0, int p1, global::Java.Lang.Throwable p2)
        {
            if (id_onError_Lcn_sharesdk_framework_Platform_ILjava_lang_Throwable_ == IntPtr.Zero)
            {
                id_onError_Lcn_sharesdk_framework_Platform_ILjava_lang_Throwable_ = JNIEnv.GetMethodID(class_ref, "onError", "(Lcn/sharesdk/framework/Platform;ILjava/lang/Throwable;)V");
            }
            JValue *__args = stackalloc JValue [3];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue(p1);
            __args [2] = new JValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)p2).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onError_Lcn_sharesdk_framework_Platform_ILjava_lang_Throwable_, __args);
        }
        public virtual unsafe void OnError(global::CN.Sharesdk.Framework.Platform platform, int action, global::Java.Lang.Throwable t)
        {
            const string __id = "onError.(Lcn/sharesdk/framework/Platform;ILjava/lang/Throwable;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((platform == null) ? IntPtr.Zero : ((global::Java.Lang.Object)platform).Handle);
                __args [1] = new JniArgumentValue(action);
                __args [2] = new JniArgumentValue((t == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)t).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
        public unsafe void OnComplete(global::CN.Sharesdk.Framework.Platform platform, int action, global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Object> res)
        {
            const string __id       = "onComplete.(Lcn/sharesdk/framework/Platform;ILjava/util/HashMap;)V";
            IntPtr       native_res = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Object> .ToLocalJniHandle(res);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((platform == null) ? IntPtr.Zero : ((global::Java.Lang.Object)platform).Handle);
                __args [1] = new JniArgumentValue(action);
                __args [2] = new JniArgumentValue(native_res);
                _members.InstanceMethods.InvokeNonvirtualVoidMethod(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_res);
            }
        }
예제 #21
0
        public unsafe void OnComplete(global::CN.Sharesdk.Framework.Platform p0, int p1, global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Object> p2)
        {
            if (id_onComplete_Lcn_sharesdk_framework_Platform_ILjava_util_HashMap_ == IntPtr.Zero)
            {
                id_onComplete_Lcn_sharesdk_framework_Platform_ILjava_util_HashMap_ = JNIEnv.GetMethodID(class_ref, "onComplete", "(Lcn/sharesdk/framework/Platform;ILjava/util/HashMap;)V");
            }
            IntPtr native_p2 = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Object> .ToLocalJniHandle(p2);

            JValue *__args = stackalloc JValue [3];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue(p1);
            __args [2] = new JValue(native_p2);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onComplete_Lcn_sharesdk_framework_Platform_ILjava_util_HashMap_, __args);
            JNIEnv.DeleteLocalRef(native_p2);
        }
예제 #22
0
 static void n_OnCancel_Lcn_sharesdk_framework_Platform_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1)
 {
     global::CN.Sharesdk.Framework.IPlatformActionListener __this = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.IPlatformActionListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::CN.Sharesdk.Framework.Platform p0 = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnCancel(p0, p1);
 }
예제 #23
0
 static void n_OnCancel_Lcn_sharesdk_framework_Platform_I(IntPtr jnienv, IntPtr native__this, IntPtr native_plat, int action)
 {
     global::CN.Sharesdk.Onekeyshare.Themes.Classic.FriendAdapter __this = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Onekeyshare.Themes.Classic.FriendAdapter>(jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::CN.Sharesdk.Framework.Platform plat = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform>(native_plat, JniHandleOwnership.DoNotTransfer);
     __this.OnCancel(plat, action);
 }
예제 #24
0
        protected unsafe global::CN.Sharesdk.Framework.Platform.ShareParams FormateShareData(global::CN.Sharesdk.Framework.Platform platform)
        {
            const string __id = "formateShareData.(Lcn/sharesdk/framework/Platform;)Lcn/sharesdk/framework/Platform$ShareParams;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((platform == null) ? IntPtr.Zero : ((global::Java.Lang.Object)platform).Handle);
                var __rm = _members.InstanceMethods.InvokeNonvirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform.ShareParams> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
예제 #25
0
 public ErrorEventArgs(global::CN.Sharesdk.Framework.Platform p0, int p1, global::Java.Lang.Throwable p2)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
 }
예제 #26
0
 public CompleteEventArgs(global::CN.Sharesdk.Framework.Platform p0, int p1, global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Object> p2)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
 }
예제 #27
0
 public CancelEventArgs(global::CN.Sharesdk.Framework.Platform p0, int p1)
 {
     this.p0 = p0;
     this.p1 = p1;
 }
 static void n_SetPlatform_Lcn_sharesdk_framework_Platform_(IntPtr jnienv, IntPtr native__this, IntPtr native_platform)
 {
     global::CN.Sharesdk.Onekeyshare.Themes.Classic.EditPage __this = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Onekeyshare.Themes.Classic.EditPage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::CN.Sharesdk.Framework.Platform platform = global::Java.Lang.Object.GetObject <global::CN.Sharesdk.Framework.Platform> (native_platform, JniHandleOwnership.DoNotTransfer);
     __this.SetPlatform(platform);
 }
        protected override unsafe void ShowEditPage(global::Android.Content.Context p0, global::CN.Sharesdk.Framework.Platform p1, global::CN.Sharesdk.Framework.Platform.ShareParams p2)
        {
            const string __id = "showEditPage.(Landroid/content/Context;Lcn/sharesdk/framework/Platform;Lcn/sharesdk/framework/Platform$ShareParams;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
                __args [2] = new JniArgumentValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
 protected abstract void ShowEditPage(global::Android.Content.Context p0, global::CN.Sharesdk.Framework.Platform p1, global::CN.Sharesdk.Framework.Platform.ShareParams p2);