FileDocCategorySizeDatePackage
BluetoothMasRequestSetNotificationRegistration.javaAPI DocAndroid 5.1 API1568Thu Mar 12 22:22:50 GMT 2015android.bluetooth.client.map

BluetoothMasRequestSetNotificationRegistration

public final class BluetoothMasRequestSetNotificationRegistration extends BluetoothMasRequest

Fields Summary
private static final String
TYPE
private final boolean
mStatus
Constructors Summary
public BluetoothMasRequestSetNotificationRegistration(boolean status)


       
        mStatus = status;

        mHeaderSet.setHeader(HeaderSet.TYPE, TYPE);

        ObexAppParameters oap = new ObexAppParameters();

        oap.add(OAP_TAGID_NOTIFICATION_STATUS, status ? NOTIFICATION_ON : NOTIFICATION_OFF);

        oap.addToHeaderSet(mHeaderSet);
    
Methods Summary
public voidexecute(javax.obex.ClientSession session)

        executePut(session, FILLER_BYTE);
    
public booleangetStatus()

        return mStatus;