public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            base.OnViewCreated(view, savedInstanceState);

            // setup data
            SetFont(txtSettings, TypefaceStyle.Bold);

            // ipAddress
            if (Resources.GetBoolean(Resource.Boolean.is_test_release))
            {
                SetFont(edtIPAddress, TypefaceStyle.Normal);
                txtIPAddress.Visibility = ViewStates.Visible; // it is used for our testing purpose please igonre it
                edtIPAddress.Visibility = ViewStates.Visible;
            }

            // application id
            SetFont(edtApplicationID, TypefaceStyle.Normal);
            edtApplicationID.Text = PokktStorage.GetAppId(this.Activity);

            // security key
            SetFont(edtSecurityKey, TypefaceStyle.Normal);
            edtSecurityKey.Text = PokktStorage.GetSecurityKey(this.Activity);

            // export log
            SetFont(btnExportLog, TypefaceStyle.Normal);
            btnExportLog.Text   = GetString(Resource.String.txt_export_log);
            btnExportLog.Click += ExportLog;

            // export log to cloud
            SetFont(btnExportLogToCloud, TypefaceStyle.Normal);
            btnExportLogToCloud.Text   = GetString(Resource.String.txt_export_to_cloud);
            btnExportLogToCloud.Click += ExportLogToCloud;
        }
Esempio n. 2
0
 private void InItPokktSDK()
 {
     PokktAds.SetNativeExtentions(new AndroidExtension(this));                                // Required for communication with PokktSDK. Should be the first line
     PokktAds.SetThirdPartyUserId("123456");                                                  // optional
     PokktAds.Debugging.ShouldDebug(true);                                                    // optional, set it to true if you want to enable logs for PokktSDK
     PokktAds.SetPokktConfig(PokktStorage.GetAppId(this), PokktStorage.GetSecurityKey(this)); // required
 }