パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v2.0.6

device_marketing_names

Android、iOS、ブラウザのデバイスマーケティング名を簡単に検索できます。インターネット接続やデータベースは不要です。

AndroidiOSWeb
30日間ダウンロード
4.3万
いいね数
46
Pub ポイント
160

パッケージをインストール

flutter pub add device_marketing_names

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

インターネット接続や外部データベースを必要とせずに、Android、iOS、Webブラウザのデバイスマーケティング名を簡単に検索できる軽量なFlutterパッケージです。ユーザーエージェント文字列およびシステムプロパティに基づいて正確なデバイス識別子を提供し、分析、デバッグ、またはパーソナライズされたユーザー体験に最適です。パッケージは自己完結型で効率的であり、あらゆるプラットフォームで高速なパフォーマンスを実現します。

用途

  • アナリティクスにおけるデバイスの識別
  • ユーザー体験のパーソナライズ
  • デバイス固有の問題のデバッグ
  • アプリでデバイス名を表示する
  • 互換性チェック

主な機能

  • インターネット接続は不要です
  • クロスプラットフォーム対応
  • オフラインデータベース
  • シンプルな API
  • 正確なデバイス名

適している対象

  • 分析統合
  • 開発者ツール
  • アプリ診断
  • ユーザー向けデバイス情報
  • クロスプラットフォームアプリ

注意事項

  • 既知のデバイスに限定
  • 動的に更新されません
  • 組み込みデバイスリストに依存しています
  • リアルタイムデバイス検出には適していません
  • 新しいまたはニッチなデバイスを逃す可能性があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Pub Version codecov GitHub Workflow Status GitHub likes pub downloads pub points Main

Device Marketing Names

A simple device name lookup package. Map e.g. 'iPhone13,4' to 'iPhone 12 Pro Max' or 'SM-G980F' to 'Galaxy S20'. No internet connection or database required.

Open in IDX

Features

  • Lookup Android marketing names
  • Lookup iOS (iPhone & iPad) marketing names
  • Lookup web browser names
  • Get the marketing name of the current device or by an already known Android or iOS model
  • Relies on device_info_plus to get the current device model information on Android or iOS and device_identifiers which maps those to the marketing names
  • The browser name is mapped via web and prettified within this library

Usage

Getting Started

Add this to your package's pubspec.yaml file:

dependencies:
  device_marketing_names: ^2.0.3

More information on pub.dev.

Examples

For full examples please see the example app.

final deviceNames = DeviceMarketingNames();

// Get one marketing name of the device.
final singleDeviceName = await deviceNames.getSingleName();

// Get all marketing names of the device.
final allDeviceNames = await deviceNames.getNames();

// Get one marketing name for the given model.
final singleDeviceNameFromModel = deviceNames.getSingleNameFromModel(DeviceType.android, "ONEPLUS A5010");

// Get all marketing names for the given model.
final allDeviceNamesFromModel = deviceNames.getNamesFromModel(DeviceType.android, "ONEPLUS A5010");
Migration from 0.3.0 to 0.4.0
  • Replace getMarketingName() with getSingleName() if you want to get exactly one matching name.
  • Replace getMarketingName() with getNames() if you want all matching names as a single string. Names are separated by " / ".
  • Replace getMarketingNameFromModel() with getSingleNameFromModel() if you want to get exactly one matching name.
  • Replace getMarketingNameFromModel() with getNamesFromModel() if you want all matching names as a single string. Names are separated by " / ".

How to contribute

If you are interested in contributing, please have a look into the contribution guide. Every idea, bug report or line of code is heavily appreciated.

カテゴリー

依存関係

依存関係一覧 3 件

ソースリポジトリ

このパッケージを使用しているプロジェクト