コード例 #1
0
        private void GetInstallReferrer()
        {
            int mode = GetIntExtra("mode", CallMode.SDK);

            Log.Info(TAG, "getInstallReferrer mode=" + mode);
            if (CallMode.SDK == mode)
            {
                // Get install referrer by sdk mode.
                InstallReferrerSdkUtil sdkUtil = new InstallReferrerSdkUtil(this);
                sdkUtil.GetInstallReferrer(this);
            }
            else if (CallMode.AIDL == mode)
            {
                // Get install referrer by aidl mode.
                InstallReferrerAidUtil aidUtil = new InstallReferrerAidUtil(this);
                aidUtil.GetInstallReferrer(this);
            }
        }
コード例 #2
0
 public InstallReferrerServiceConnection(InstallReferrerAidUtil referrerAidUtil)
 {
     this.referrerAidUtil = referrerAidUtil;
 }