Ejemplo n.º 1
0
        public override void StartPreview(Action <Texture2D> startCallback, Action <long> frameCallback, ScreenOrientation rotation)
        {
            this.rotation     = rotation != 0 ? rotation : Screen.orientation;
            this.callback     = new Callback(startCallback, frameCallback);
            this.focusHandler = FocusHandler.Create(this);
            RenderDispatcher.Dispatch(() => {
                AndroidJNI.AttachCurrentThread();

                device.Call(@"startPreview", (int)this.rotation, callback);
            });
        }