new public static void CreateInstance(ePlat plant) { if (instance == null) { if (plant == ePlat.Android) { instance = new TencentAndroidImpl(); instance.parentImpl = new CustomAndroidSdkImpl(); } } }
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(); } } }
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(); } }