Android-Module-NFC

Android设备采集NFC的模块

License

License

GroupId

GroupId

io.github.yongzheng7
ArtifactId

ArtifactId

module-nfc
Last Version

Last Version

3.0
Release Date

Release Date

Type

Type

aar
Description

Description

Android-Module-NFC
Android设备采集NFC的模块
Source Code Management

Source Code Management

https://github.com/yongzheng7/Android-Module-NFC

Download module-nfc

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.yongzheng7/module-nfc/ -->
<dependency>
    <groupId>io.github.yongzheng7</groupId>
    <artifactId>module-nfc</artifactId>
    <version>3.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/io.github.yongzheng7/module-nfc/
implementation 'io.github.yongzheng7:module-nfc:3.0'
// https://jarcasting.com/artifacts/io.github.yongzheng7/module-nfc/
implementation ("io.github.yongzheng7:module-nfc:3.0")
'io.github.yongzheng7:module-nfc:aar:3.0'
<dependency org="io.github.yongzheng7" name="module-nfc" rev="3.0">
  <artifact name="module-nfc" type="aar" />
</dependency>
@Grapes(
@Grab(group='io.github.yongzheng7', module='module-nfc', version='3.0')
)
libraryDependencies += "io.github.yongzheng7" % "module-nfc" % "3.0"
[io.github.yongzheng7/module-nfc "3.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.google.guava : guava jar 30.1.1-android

Project Modules

There are no modules declared in this project.

Android-Module-NFC

一个使用Android NFC的模块

加入步骤

1 在项目根build.gradle中添加

buildscript { repositories { // 添加maven库,鉴于Jcenter()即将过期 mavenCentral() } allprojects { repositories { //添加maven库,鉴于Jcenter()即将过期 mavenCentral() } } }

2 在App模块或者Module模块下的build.gradle中添加依赖

dependencies { // 依赖 implementation 'io.github.yongzheng7:module-nfc:2.0' }

3 在代码中添加

NFCActivity.start(this, (arrayMsg, values) -> { // 点击会出现Dialog提醒,此时,确保手机支持NFC 同时NFC为开启状态 // 当扫描到NFC消息后,回调该方法 });

Versions

Version
3.0
2.0
1.0