Beispiel #1
0
 public static ApiToManga GetApiToManga(String DeviceName)
 {
     if (thisObject == null)
     {
         thisObject = new ApiToManga(DeviceName);
         return(thisObject);
     }
     return(thisObject);
 }
Beispiel #2
0
 public static ApiToManga GetApiToManga(String DeviceName)
 {//https://developer.xamarin.com/guides/cross-platform/application_fundamentals/building_cross_platform_applications/part_4_-_platform_divergence_abstraction_divergent_implementation/
     string device = "UNKNOWN";
     #if __IOS__
     device = "IOS";
     #endif
     #if __ANDROID__
     device = "ANDROID";
     #endif
     if (thisObject == null)
     {
         thisObject = new ApiToManga(DeviceName);
         return thisObject;
     }
     return thisObject;
 }
Beispiel #3
0
        public static ApiToManga GetApiToManga(String DeviceName)
        {//https://developer.xamarin.com/guides/cross-platform/application_fundamentals/building_cross_platform_applications/part_4_-_platform_divergence_abstraction_divergent_implementation/
            string device = "UNKNOWN";

            #if __IOS__
            device = "IOS";
            #endif
            #if __ANDROID__
            device = "ANDROID";
            #endif
            if (thisObject == null)
            {
                thisObject = new ApiToManga(DeviceName);
                return(thisObject);
            }
            return(thisObject);
        }