패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.0.6

device_marketing_names

Android, iOS 및 브라우저의 장치 마케팅 이름을 쉽게 조회할 수 있습니다. 인터넷 연결 또는 데이터베이스가 필요하지 않습니다.

AndroidiOSWeb
30일 다운로드
4.3만
좋아요
46
Pub 점수
160

패키지 설치

flutter pub add device_marketing_names

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

인터넷 연결이나 외부 데이터베이스 없이도 안드로이드, iOS 및 웹 브라우저의 장치 마케팅 이름을 쉽게 검색할 수 있는 가벼운 플러터 패키지입니다. 사용자 에이전트 문자열과 시스템 속성 기반으로 정확한 장치 식별자를 제공하여 분석, 디버깅 또는 개인화된 사용자 경험에 이상적입니다. 패키지는 자체적으로 완전하며 효율적이며 모든 플랫폼에서 빠른 성능을 보장합니다.

사용 사례

  • 분석에서 장치 식별
  • 사용자 경험 개인화
  • 기기별 문제 디버깅
  • 앱에서 장치 이름 표시
  • 호환성 확인

주요 기능

  • 인터넷 필요 없음
  • 크로스 플랫폼 지원
  • 오프라인 데이터베이스
  • 간단한 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 개

소스 저장소

이 패키지를 사용하는 프로젝트