Show / Hide Table of Contents

Class ISN_AVCaptureDevice

A device that provides input (such as audio or video) for capture sessions and offers controls for hardware-specific capture features.

Inheritance
System.Object
ISN_AVCaptureDevice
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SA.iOS.AVFoundation
Assembly: cs.temp.dll.dll
Syntax
public static class ISN_AVCaptureDevice

Methods

GetAuthorizationStatus(ISN_AVMediaType)

Returns a constant indicating whether the app has permission for recording a specified media type

After the user grants recording permission, the system remembers the choice for future use in the same app, but the user can change this choice at any time using the Settings app. If the user has denied your app recoding permission or has not yet responded to the permission prompt, any audio recordings will contain only silence and any video recordings will contain only black frames.

Declaration
public static ISN_AVAuthorizationStatus GetAuthorizationStatus(ISN_AVMediaType type)
Parameters
Type Name Description
ISN_AVMediaType type

A media type constant, either Video or Audio.

Returns
Type Description
ISN_AVAuthorizationStatus

RequestAccess(ISN_AVMediaType, Action<ISN_AVAuthorizationStatus>)

Requests the user’s permission, if needed, for recording a specified media type.

Recording audio or video always requires explicit permission from the user. Your app must provide an explanation for its use of capture devices using the NSCameraUsageDescription or NSMicrophoneUsageDescription Info.plist key; iOS displays this explanation when initially asking the user for permission, and thereafter in the Settings app. Calling this method or attempting to start a capture session without a usage description raises an exception.

Declaration
public static void RequestAccess(ISN_AVMediaType type, Action<ISN_AVAuthorizationStatus> callback)
Parameters
Type Name Description
ISN_AVMediaType type

media type.

Action<ISN_AVAuthorizationStatus> callback

Callback.

In This Article
Back to top Generated by DocFX