new public static void CreateInstance(ePlat plant)
 {
     if (instance == null)
     {
         if (plant == ePlat.Android)
         {
             instance            = new TencentAndroidImpl();
             instance.parentImpl = new CustomAndroidSdkImpl();
         }
     }
 }
Beispiel #2
0
 public static void CreateInstance(ePlat plant)
 {
     if (instance == null)
     {
         if (plant == ePlat.Android)
         {
             instance = new AndroidSdkImpl();
         }
         else if (plant == ePlat.Ios)
         {
             instance = new IosSdkImpl();
         }
         else
         {
             instance = new NoSdkImpl();
         }
     }
 }
Beispiel #3
0
 public static void CreateInstance(ePlat plant)
 {
     if (instance == null)
     {
         instance         = new HonorSDKImpl();
         instance.handler = new HonorMessageHandler(instance);
     }
     if (plant == ePlat.Android)
     {
         instance.instanceImpl = new CustomAndroidSdkImpl();
     }
     else if (plant == ePlat.Ios)
     {
         instance.instanceImpl = new CustomIosSdkImpl();
     }
     else
     {
         instance.instanceImpl = new NoSdkImpl();
     }
 }