setActivity

fun setActivity(activity: Any, vibrateOnTagDetection: Boolean = false)

Set activity to allow access to NFC adapter

Parameters

activity

Activity to get android context

vibrateOnTagDetection

Allow vibration when tag is detected (default false)