public void GetFlashState_NO_EXCEPTION() { try { CameraFlashState state = Camera.GetFlashState(CameraDevice.Rear); Assert.IsNotNull(state, "Camera flash state should not be null."); Assert.IsInstanceOf <CameraFlashState>(state, "The object should be of type CameraFlashState."); } catch (NotSupportedException) { Assert.Pass("Flash feature is not supported."); } }
internal static extern CameraError GetFlashState(CameraDevice device, out CameraFlashState state);