Exemplo n.º 1
0
        protected override IEnumerable <string> GetSimpleReferences(Type type)
        {
            string?j = JNIEnv.TypemapManagedToJava(type);

            if (j != null)
            {
                yield return(j);
            }
            if (JNIEnv.IsRunningOnDesktop)
            {
                yield return(JavaNativeTypeManager.ToJniName(type));
            }
        }
Exemplo n.º 2
0
        protected override string?GetSimpleReference(Type type)
        {
            string?j = JNIEnv.TypemapManagedToJava(type);

            if (j != null)
            {
                return(j);
            }
            if (JNIEnv.IsRunningOnDesktop)
            {
                return(JavaNativeTypeManager.ToJniName(type));
            }
            return(null);
        }