Created
December 27, 2012 16:25
-
-
Save roosmaa/4389571 to your computer and use it in GitHub Desktop.
Twice defined static helper variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ... --> | |
<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<java.lang.String>"> | |
</parameter> | |
</method> | |
<!-- ... --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... (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