count Device References

@Query(value = ""SELECT COUNT(*) FROM " + USER_DEVICES_KEY + _WHERE_ + DEVICE_IDENTIFIER_KEY + "=:" + DEVICE_IDENTIFIER_KEY", nativeQuery = true )
abstract fun countDeviceReferences(@Param(value = "device_id") deviceId: String): Long

Query used to count the total references of the device between sessions

Return

the total references as long

Parameters

deviceId

The identifier of the device