This package provides information about the device with IWS compatible format.

Features

  • Quick implementation of the package.
  • Compatible with IWS format.

Getting started

Install the package: pub add iws_device_info.

Usage

import 'package:iws_device_info/iws_device_info.dart';

/// Retrieves the platform name of the device.
final platformName = IwsDeviceInfo.getDevicePlatformName();

/// Retrieves the device information for a given device ID and user identifier.
final device = await IwsDeviceInfo.getDeviceInfo(
    deviceId: '123456789',
    userIdentifier: '123456789',
);

/// Checks if the current platform is web or desktop.
final isWebOrDesktop = IwsDeviceInfo.isWebOrDesktop();

/// Checks if the current platform is Android or iOS.
final isMobile = IwsDeviceInfo.isMobile();

/// Checks if the current platform is web.
final isWeb = IwsDeviceInfo.isWeb();

/// Checks if the current platform is Android.
final isAndroid = IwsDeviceInfo.isAndroid();

/// Checks if the current platform is iOS.
final isIOS = IwsDeviceInfo.isIOS();

/// Checks if the current platform is Windows.
final isWindows = IwsDeviceInfo.isWindows();

/// Checks if the current platform is Linux.
final isLinux = IwsDeviceInfo.isLinux();

/// Checks if the current platform is macOS.
final isMacOS = IwsDeviceInfo.isMacOS();

/// Checks if the current platform is an Apple device.
final isAppleDevice = IwsDeviceInfo.isAppleDevice();

Libraries

iws_device_info