Example usage for android.bluetooth.le ScanRecord getManufacturerSpecificData

List of usage examples for android.bluetooth.le ScanRecord getManufacturerSpecificData

Introduction

In this page you can find the example usage for android.bluetooth.le ScanRecord getManufacturerSpecificData.

Prototype

public SparseArray<byte[]> getManufacturerSpecificData() 

Source Link

Document

Returns a sparse array of manufacturer identifier and its corresponding manufacturer specific data.

Usage

From source file:com.forkingcode.bluetoothcompat.ScanRecordCompat.java

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
ScanRecordCompat(ScanRecord record) {
    mServiceUuids = record.getServiceUuids();
    mManufacturerSpecificData = record.getManufacturerSpecificData();
    mServiceData = record.getServiceData();
    mDeviceName = record.getDeviceName();
    mAdvertiseFlags = record.getAdvertiseFlags();
    mTxPowerLevel = record.getTxPowerLevel();
    mBytes = record.getBytes();/*  ww w.ja  va2s  .  c o  m*/
}