public static unsafe void SetResourcesCachePath(string path, global::Com.Mapbox.Mapboxsdk.Storage.FileSource.IResourcesCachePathChangeCallback @callback) { const string __id = "setResourcesCachePath.(Ljava/lang/String;Lcom/mapbox/mapboxsdk/storage/FileSource$ResourcesCachePathChangeCallback;)V"; IntPtr native_path = JNIEnv.NewString(path); try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue(native_path); __args [1] = new JniArgumentValue((@callback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@callback).Handle); _members.StaticMethods.InvokeVoidMethod(__id, __args); } finally { JNIEnv.DeleteLocalRef(native_path); } }
static void n_OnError_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Mapbox.Mapboxsdk.Storage.FileSource.IResourcesCachePathChangeCallback __this = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Mapboxsdk.Storage.FileSource.IResourcesCachePathChangeCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); __this.OnError(p0); }