示例#1
0
        private IList <Flips> GetSupportedStreamFlips()
        {
            List <Flips> streamFlips = new List <Flips>();

            NativeCapabilities.StreamFlipCallback callback = (Flips streamFlip, IntPtr userData) =>
            {
                streamFlips.Add(streamFlip);
                return(true);
            };
            CameraErrorFactory.ThrowIfError(NativeCapabilities.SupportedStreamFlips(_camera.GetHandle(), callback, IntPtr.Zero),
                                            "Failed to get the supported camera flips.");

            return(streamFlips.AsReadOnly());
        }
示例#2
0
        private IList <Flips> GetSupportedStreamFlips()
        {
            var streamFlips = new List <Flips>();

            NativeCapabilities.StreamFlipCallback callback = (streamFlip, _) =>
            {
                streamFlips.Add(streamFlip);
                return(true);
            };

            NativeCapabilities.SupportedStreamFlips(_camera.GetHandle(), callback).
            ThrowIfFailed("Failed to get the supported camera flips.");

            return(streamFlips.AsReadOnly());
        }