PlatformCapabilities class

Capabilities implemented by the Kit, not a promise of hardware or permission.

Constructors

PlatformCapabilities(TargetPlatform platform, {bool isWeb = false, DeviceFormFactor deviceFormFactor = DeviceFormFactor.unknown})
const
PlatformCapabilities.current()
factory

Properties

deviceFormFactor → DeviceFormFactor
final
hashCode → int
The hash code for this object.
no setterinherited
isApple → bool
no setter
isDesktop → bool
no setter
isMobile → bool
no setter
isOhos → bool
no setter
isWeb → bool
final
platform → TargetPlatform
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsCamera → bool
no setter
supportsFileDrop → bool
no setter
supportsFileSelection → bool
no setter
supportsGallerySave → bool
系统相册保存仅移动端可用;桌面端应改用「另存为」导出到用户选定路径。
no setter
supportsNotifications → bool
no setter
supportsPlayback → bool
no setter
supportsRecording → bool
no setter
usesMobileLayout → bool
no setter
usesOhosMediaPicker → bool
no setter
usesSystemCameraForPhoto → bool
Android 原生 IMKit 的「拍照」走系统相机(ACTION_IMAGE_CAPTURE);应用内 CameraX 预览在魅族 16s 等机型整页黑屏,因此 Android 对齐原生改用系统相机, iOS/OHOS 继续沿用平台相机。
no setter
usesSystemCameraForVideo → bool
Android 原生 IMKit 的「拍摄」在部分 ROM(如魅族 16s Pro)无法用 CameraX 配置采集会话(Waiting for CameraCaptureSession configuration timed out), 应用内预览整页黑屏。Android 因此和「拍照」一样改用系统录像, iOS/OHOS 保持应用内录像。
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited