Exemplo n.º 1
0
        void ToggleLivePhotoMode()
        {
            sessionQueue.DispatchAsync(() => {
                livePhotoMode = (livePhotoMode == LivePhotoMode.On) ? LivePhotoMode.Off : LivePhotoMode.On;
                var mode      = livePhotoMode;

                DispatchQueue.MainQueue.DispatchAsync(() => {
                    var title = (mode == LivePhotoMode.On) ? "Live Photo Mode: On" : "Live Photo Mode: Off";
                    LivePhotoModeButton.SetTitle(title, UIControlState.Normal);
                });
            });
        }
Exemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (CameraButton != null)
            {
                CameraButton.Dispose();
                CameraButton = null;
            }

            if (CameraUnavailableLabel != null)
            {
                CameraUnavailableLabel.Dispose();
                CameraUnavailableLabel = null;
            }

            if (CaptureModeControl != null)
            {
                CaptureModeControl.Dispose();
                CaptureModeControl = null;
            }

            if (CapturingLivePhotoLabel != null)
            {
                CapturingLivePhotoLabel.Dispose();
                CapturingLivePhotoLabel = null;
            }

            if (DepthDataDeliveryButton != null)
            {
                DepthDataDeliveryButton.Dispose();
                DepthDataDeliveryButton = null;
            }

            if (LivePhotoModeButton != null)
            {
                LivePhotoModeButton.Dispose();
                LivePhotoModeButton = null;
            }

            if (PhotoButton != null)
            {
                PhotoButton.Dispose();
                PhotoButton = null;
            }

            if (PreviewView != null)
            {
                PreviewView.Dispose();
                PreviewView = null;
            }

            if (RecordButton != null)
            {
                RecordButton.Dispose();
                RecordButton = null;
            }

            if (ResumeButton != null)
            {
                ResumeButton.Dispose();
                ResumeButton = null;
            }
        }