Пример #1
0
 public void openYoutube()
 {
     AndroidCore.openApplicationView("vnd.youtube:kyD0q57zw40");
 }
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            RequestWindowFeature(WindowFeatures.NoTitle);
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);

            ImageView img = FindViewById <ImageView>(Resource.Id.imageView1);

            AndroidCore.Init(this, this, img);

            Button button = FindViewById <Button>(Resource.Id.MyButton);

            button.Click += delegate
            {
                button.Text = $"{count++} clicks!";

                if (count % 2 == 1)
                {
                    Stop();
                    button.Text += "\nStopped";
                }
                else
                {
                    Start();
                    button.Text += "\nStarted";
                }
            };
            Button b1 = FindViewById <Button>(Resource.Id.button1);

            b1.Click += delegate
            {
                OpenCvSharp.Android.NativeBinding.K.SendKey('c');
            };
            Button b2 = FindViewById <Button>(Resource.Id.button2);

            b2.Click += delegate
            {
                OpenCvSharp.Android.NativeBinding.K.SendKey('v');
            };
            Button b3 = FindViewById <Button>(Resource.Id.button3);

            b3.Click += delegate
            {
                OpenCvSharp.Android.NativeBinding.K.SendKey(' ');
            };
            Button b4 = FindViewById <Button>(Resource.Id.button4);

            b4.Click += delegate
            {
                OpenCvSharp.Android.NativeBinding.K.SendKey('g');
            };
            Button b5 = FindViewById <Button>(Resource.Id.button5);

            b5.Click += delegate
            {
                OpenCvSharp.Android.NativeBinding.K.SendKey('j');
            };
            Button b6 = FindViewById <Button>(Resource.Id.button6);

            b6.Click += delegate
            {
                OpenCvSharp.Android.NativeBinding.K.SendKey('b');
            };
            Button b7 = FindViewById <Button>(Resource.Id.button7);

            b7.Click += delegate
            {
                OpenCvSharp.Android.NativeBinding.K.SendKey('`');
            };

            detectorXml = new FaceDetectorXmlLoader();
            flandModel  = new FlandmarkModelLoader();
        }
Пример #3
0
 public void share()
 {
     AndroidCore.share("Get Android Native Feature in unity game with Android Native Core", NotifiBigIcon);
 }
Пример #4
0
 public void mail()
 {
     AndroidCore.composeMail("*****@*****.**", "Android Native Core Demo", "This mail composed from Android Native Core Unity Plugin");
 }
Пример #5
0
 public void message()
 {
     AndroidCore.composeMessage("123456789", "This message composed from Android Native Core Unity Plugin");
 }
Пример #6
0
 public void Call()
 {
     AndroidCore.makeCall("123456789");
 }
Пример #7
0
 public void dail()
 {
     AndroidCore.dial("123456789");
 }