IT. Expert System.

Android Reference

BluetoothProfile


android.bluetooth

Interface BluetoothProfile

    • Nested Class Summary

      Nested Classes
      Modifier and Type Interface and Description
      static interface BluetoothProfile.ServiceListener
      An interface for notifying BluetoothProfile IPC clients when they have been connected or disconnected to the service.
    • Field Summary

      Fields
      Modifier and Type Field and Description
      static int A2DP
      A2DP profile.
      static String EXTRA_PREVIOUS_STATE
      Extra for the connection state intents of the individual profiles.
      static String EXTRA_STATE
      Extra for the connection state intents of the individual profiles.
      static int HEADSET
      Headset and Handsfree profile
      static int HEALTH
      Health Profile
      static int INPUT_DEVICE
      Input Device Profile
      static int PAN
      PAN Profile
      static int PBAP
      PBAP
      static int PRIORITY_AUTO_CONNECT
      Default priority for devices that we try to auto-connect to and and allow incoming connections for the profile
      static int PRIORITY_OFF
      Default priority for devices that does not allow incoming connections and outgoing connections for the profile.
      static int PRIORITY_ON
      Default priority for devices that allow incoming and outgoing connections for the profile
      static int PRIORITY_UNDEFINED
      Default priority when not set or when the device is unpaired
      static int STATE_CONNECTED
      The profile is in connected state
      static int STATE_CONNECTING
      The profile is in connecting state
      static int STATE_DISCONNECTED
      The profile is in disconnected state
      static int STATE_DISCONNECTING
      The profile is in disconnecting state
    • Field Detail

      • EXTRA_STATE

        static final String EXTRA_STATE
        Extra for the connection state intents of the individual profiles. This extra represents the current connection state of the profile of the Bluetooth device.
        See Also:
        Constant Field Values
      • EXTRA_PREVIOUS_STATE

        static final String EXTRA_PREVIOUS_STATE
        Extra for the connection state intents of the individual profiles. This extra represents the previous connection state of the profile of the Bluetooth device.
        See Also:
        Constant Field Values
      • STATE_DISCONNECTED

        static final int STATE_DISCONNECTED
        The profile is in disconnected state
        See Also:
        Constant Field Values
      • STATE_CONNECTING

        static final int STATE_CONNECTING
        The profile is in connecting state
        See Also:
        Constant Field Values
      • STATE_CONNECTED

        static final int STATE_CONNECTED
        The profile is in connected state
        See Also:
        Constant Field Values
      • STATE_DISCONNECTING

        static final int STATE_DISCONNECTING
        The profile is in disconnecting state
        See Also:
        Constant Field Values
      • PRIORITY_AUTO_CONNECT

        static final int PRIORITY_AUTO_CONNECT
        Default priority for devices that we try to auto-connect to and and allow incoming connections for the profile
        See Also:
        Constant Field Values
      • PRIORITY_ON

        static final int PRIORITY_ON
        Default priority for devices that allow incoming and outgoing connections for the profile
        See Also:
        Constant Field Values
      • PRIORITY_OFF

        static final int PRIORITY_OFF
        Default priority for devices that does not allow incoming connections and outgoing connections for the profile.
        See Also:
        Constant Field Values
      • PRIORITY_UNDEFINED

        static final int PRIORITY_UNDEFINED
        Default priority when not set or when the device is unpaired
        See Also:
        Constant Field Values
    • Method Detail

      • getConnectedDevices

        List<BluetoothDevice> getConnectedDevices()
        Get connected devices for this specific profile.

        Return the set of devices which are in state STATE_CONNECTED

        Requires android.Manifest.permission#BLUETOOTH permission.

        Returns:
        List of devices. The list will be empty on error.
      • getDevicesMatchingConnectionStates

        List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states)
        Get a list of devices that match any of the given connection states.

        If none of the devices match any of the given states, an empty list will be returned.

        Requires android.Manifest.permission#BLUETOOTH permission.

        Parameters:
        states - Array of states. States can be one of STATE_CONNECTED, STATE_CONNECTING, STATE_DISCONNECTED, STATE_DISCONNECTING,
        Returns:
        List of devices. The list will be empty on error.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1496 / . Delta: 0.02908 с