コード例 #1
0
        public GreatPushReactPackage(string deploymentKey, ReactNativeHost host)
        {
            AppVersion    = GreatPushUtils.GetAppVersion();
            DeploymentKey = deploymentKey;
            Host          = host;
            UpdateManager = new UpdateManager();

            if (CurrentInstance != null)
            {
                GreatPushUtils.Log("More than one GreatPush instance has been initialized. Please use the instance method greatPush.getBundleUrlInternal() to get the correct bundleURL for a particular instance.");
            }

            CurrentInstance = this;
        }
コード例 #2
0
#pragma warning disable CS0618 // Keeping for backward compatibility
        public GreatPushReactPackage(string deploymentKey, ReactPage mainPage)
#pragma warning restore CS0618 // Keeping for backward compatibility
        {
            AppVersion    = GreatPushUtils.GetAppVersion();
            DeploymentKey = deploymentKey;
            MainPage      = mainPage;
            UpdateManager = new UpdateManager();

            if (CurrentInstance != null)
            {
                GreatPushUtils.Log("More than one GreatPush instance has been initialized. Please use the instance method greatPush.getBundleUrlInternal() to get the correct bundleURL for a particular instance.");
            }

            CurrentInstance = this;
        }
コード例 #3
0
 public GreatPushNativeModule(ReactContext reactContext, GreatPushReactPackage greatPush)
     : base(reactContext)
 {
     _reactContext = reactContext;
     _greatPush    = greatPush;
 }