DeviceManagerState type
يهدف هذا النوع إلى تغليف جميع الحالات داخل <xref:%40azure%2Fcommunication-calling%23DeviceManager>. بالنسبة للمعلمات الاختيارية، قد لا تكون متوفرة حتى يتم منح الإذن من قبل المستخدم. ستكون الكاميرات والميكروفونات والسماعات وحالات deviceAccess فارغة حتى يتم استدعاء واجهات برمجة تطبيقات <xref:%40azure%2Fcommunication-calling%23DeviceManager>getCameras و getMicrophones و getSpeakers و askDevicePermission وإكمالها.
type DeviceManagerState = {
cameras: VideoDeviceInfo[]
deviceAccess?: DeviceAccess
isSpeakerSelectionAvailable: boolean
microphones: AudioDeviceInfo[]
selectedCamera?: VideoDeviceInfo
selectedMicrophone?: AudioDeviceInfo
selectedSpeaker?: AudioDeviceInfo
speakers: AudioDeviceInfo[]
unparentedViews: LocalVideoStreamState[]
}