Last active
January 4, 2016 09:39
-
-
Save jgold6/8603101 to your computer and use it in GitHub Desktop.
LiveSDK 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
| // Customer is getting this error in his binding project: | |
| // /Users/apple/Downloads/AndroidBinding_LiveSDK/AndroidBinding_LiveSDK/obj/Debug/generated/src/Com.Microsoft.Live.LiveConnectClient.cs(59,59): Error CS0311: The type `System.IO.Stream' cannot be used as type parameter `TResult' in the generic type or method `Java.Interop.JavaObjectExtensions.JavaCast<TResult>(this Android.Runtime.IJavaObject)'. There is no implicit reference conversion from `System.IO.Stream' to `Android.Runtime.IJavaObject' (CS0311) (AndroidBinding_LiveSDK) | |
| // For the below method: | |
| // This method is explicitly implemented as a member of an instantiated Com.Microsoft.Live.ApiRequestAsync.IObserver | |
| void global::Com.Microsoft.Live.ApiRequestAsync.IObserver.OnComplete (global::Java.Lang.Object p0) | |
| { | |
| OnComplete (global::Java.Interop.JavaObjectExtensions.JavaCast<System.IO.Stream>(p0)); | |
| } | |
| // Found this in the same class: | |
| static void n_OnComplete_Ljava_io_InputStream_ (IntPtr jnienv, IntPtr native__this, IntPtr native_p0) | |
| { | |
| global::Com.Microsoft.Live.LiveConnectClient.DownloadObserver __this = global::Java.Lang.Object.GetObject<global::Com.Microsoft.Live.LiveConnectClient.DownloadObserver> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); | |
| System.IO.Stream p0 = global::Android.Runtime.InputStreamInvoker.FromJniHandle (native_p0, JniHandleOwnership.DoNotTransfer); | |
| __this.OnComplete (p0); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment