device_info_plus_watchos 0.1.0 copy "device_info_plus_watchos: ^0.1.0" to clipboard
device_info_plus_watchos: ^0.1.0 copied to clipboard

watchOS implementation of the device_info_plus plugin, exposing WKInterfaceDevice model, system name, and version details via dart:ffi.

device_info_plus_watchos #

The watchOS implementation of device_info_plus.

Scaffolded with flutter-watchos plugin port and finished by hand as an FFI implementation over WKInterfaceDevice — see PORTING_REPORT.md.

Usage #

dependencies:
  device_info_plus: ^11.0.0
  device_info_plus_watchos: ^0.1.0

watchOS reports as an iOS-family platform, so read it through the iOS accessor:

final info = await DeviceInfoPlugin().iosInfo;
print(info.systemVersion); // watchOS version, e.g. "11.0"
print(info.utsname.machine); // e.g. "Watch7,1"

API coverage #

Populates the IosDeviceInfo fields from WKInterfaceDevice, uname(), NSProcessInfo, and NSFileManager:

Field Source
name, systemName, systemVersion, model, localizedModel WKInterfaceDevice
identifierForVendor WKInterfaceDevice.identifierForVendor
utsname.*, modelName uname() (machine id, e.g. Watch7,1)
physicalRamSize / availableRamSize NSProcessInfo.physicalMemory
freeDiskSize / totalDiskSize NSFileManager filesystem attributes
isPhysicalDevice TARGET_OS_SIMULATOR
isiOSAppOnMac / isiOSAppOnVision always false (impossible on a watch)

License #

The FlutterWatch Authors under a BSD-3-Clause license. See LICENSE for the full text.

0
likes
140
points
100
downloads

Documentation

API reference

Publisher

verified publisherflutterwatch.dev

Weekly Downloads

watchOS implementation of the device_info_plus plugin, exposing WKInterfaceDevice model, system name, and version details via dart:ffi.

Homepage
Repository (GitHub)
View/report issues

Topics

#watchos #ffi #device-info

License

BSD-3-Clause (license)

Dependencies

device_info_plus_platform_interface, ffi, flutter

More

Packages that depend on device_info_plus_watchos

Packages that implement device_info_plus_watchos