Beispiel #1
0
        //private LivePersonCallbackImpl livePersonCallback;
        //private BroadcastReceiver mLivePersonReceiver;
        //private bool showToastOnCallback = true;
        //public static MainActivity Instance;

        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            // RegisterToLivePersonEvents();
            MonitoringInitParams monitoringInitParams = new MonitoringInitParams(AppStorage.MAppinstallid);

            var initLivePerson = new InitLivePersonCallBackStartActivity(this);

            LivePerson.Initialize(ApplicationContext, new InitLivePersonProperties(AppStorage.BrandID, AppStorage.FCM_APP_ID, monitoringInitParams, new InitLivePersonCallBackStartActivity()));

            /*
             * LivePerson.initialize(getApplicationContext(), new InitLivePersonProperties(mAccountIdEditText.getText().toString(), SampleAppStorage.SDK_SAMPLE_FCM_APP_ID, monitoringInitParams, new InitLivePersonCallBack() {
             *
             *       @Override
             *
             *       public void onInitSucceed()
             *   {
             *       enableLogoutButton(true);
             *
             *       Intent messagingIntent = new Intent(IntroActivity.this, MessagingActivity.class);
             *               startActivity(messagingIntent);
             *   }
             *
             *   @Override
             *                   public void onInitFailed(Exception e)
             *   {
             *       Toast.makeText(IntroActivity.this, "Init failed", Toast.LENGTH_SHORT).show();
             *   }
             * }));
             *
             */
        }
Beispiel #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here
            SetContentView(Resource.Layout.MessageActivity);

            Log.Info(Tag, "onCreate savedInstanceState = " + savedInstanceState);
            var initLivePersonCallBackInFragment = new InitLivePersonCallBackInFragment(this, Tag, livepersonFragment, firstName, lastName, phone);

            LivePerson.Initialize(this, new InitLivePersonProperties(AppStorage.BrandID, AppStorage.FCM_APP_ID, new InitLivePersonCallBackInFragment()));
        }