Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Twice defined static helper variable
<!-- ... -->
<method abstract="false" deprecated="not deprecated" final="false" name="setPermissions" native="false" return="com.facebook.Session.AuthorizationRequest" static="false" synchronized="false" visibility="public">
<parameter name="p0" type="java.util.List">
</parameter>
</method>
<method abstract="false" deprecated="not deprecated" final="true" name="setPermissions" native="false" return="com.facebook.Session.OpenRequest" static="false" synchronized="false" visibility="public">
<parameter name="p0" type="java.util.List&lt;java.lang.String&gt;">
</parameter>
</method>
<!-- ... -->
// ... (line: 410)
static IntPtr id_setPermissions_Ljava_util_List_;
[Register ("setPermissions", "(Ljava/util/List;)Lcom/facebook/Session$AuthorizationRequest;", "")]
public global::Facebook.Session.AuthorizationRequest SetPermissions (global::System.Collections.IList p0)
{
if (id_setPermissions_Ljava_util_List_ == IntPtr.Zero)
id_setPermissions_Ljava_util_List_ = JNIEnv.GetMethodID (class_ref, "setPermissions", "(Ljava/util/List;)Lcom/facebook/Session$AuthorizationRequest;");
IntPtr native_p0 = global::Android.Runtime.JavaList.ToLocalJniHandle (p0);
global::Facebook.Session.AuthorizationRequest __ret = global::Java.Lang.Object.GetObject<global::Facebook.Session.AuthorizationRequest> (JNIEnv.CallObjectMethod (Handle, id_setPermissions_Ljava_util_List_, new JValue (native_p0)), JniHandleOwnership.TransferLocalRef);
JNIEnv.DeleteLocalRef (native_p0);
return __ret;
}
static IntPtr id_setPermissions_Ljava_util_List_;
[Register ("setPermissions", "(Ljava/util/List;)Lcom/facebook/Session$OpenRequest;", "")]
public global::Facebook.Session.OpenRequest SetPermissions (global::System.Collections.Generic.IList<string> p0)
{
if (id_setPermissions_Ljava_util_List_ == IntPtr.Zero)
id_setPermissions_Ljava_util_List_ = JNIEnv.GetMethodID (class_ref, "setPermissions", "(Ljava/util/List;)Lcom/facebook/Session$OpenRequest;");
IntPtr native_p0 = global::Android.Runtime.JavaList<string>.ToLocalJniHandle (p0);
global::Facebook.Session.OpenRequest __ret = global::Java.Lang.Object.GetObject<global::Facebook.Session.OpenRequest> (JNIEnv.CallObjectMethod (Handle, id_setPermissions_Ljava_util_List_, new JValue (native_p0)), JniHandleOwnership.TransferLocalRef);
JNIEnv.DeleteLocalRef (native_p0);
return __ret;
}
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.