public override void OnCreate()
        {
            base.OnCreate();
            RegisterActivityLifecycleCallbacks(this);
            //A great place to initialize Xamarin.Insights and Dependency Services!

            Intercom.Initialize(this, "your api key", "your app id");
            Registration registration = Registration.Create().WithUserId("123456");

            Intercom.Client().RegisterIdentifiedUser(registration);
            Intercom.Client().DisplayMessenger();
        }
Beispiel #2
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.SetTheme(Resource.Style.MainTheme);
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            //LoadApplication(new App());

            Intercom.Initialize(this.Application, "android_sdk-bec55dc8fc4abbcba258f5132cad4d4cfc91f997", "zyx82osk");
        }
        public void Initialize()
        {
            lock (this)
            {
                isInitialized.CheckIfFulfills("CommandDispatcher", "initialized", false);
                isInitialized = true;
            }

            MediaEncodingProfile mediaEncodingProfile = MediaEncodingProfile.CreateMp4(VideoEncodingQuality.Vga);

            mediaEncodingProfile.Video.FrameRate.Numerator   = 5;
            mediaEncodingProfile.Video.FrameRate.Denominator = 1;
            intercom = new Intercom(mediaEncodingProfile, SettingsManager.Instance.IntercomButtonPin, gpio);
            intercom.Initialize();

            devices = OutputDevice.CreateOutputDevices(gpio);
        }