Esempio n. 1
0
        public static IntPtr ToLocalJniHandle(XmlReader value)
        {
            if (value == null)
            {
                return(IntPtr.Zero);
            }

            var xppr = value as XmlPullParserReader;

            if (xppr != null)
            {
                return(JNIEnv.NewLocalRef(xppr.Handle));
            }
            return(JNIEnv.ToLocalJniHandle(new Android.Runtime.XmlReaderPullParser(value)));
        }