Stay organized with collections
Save and categorize content based on your preferences.
BluetoothClass.Service
public
static
final
class
BluetoothClass.Service
extends Object
Defines all service class constants.
Each BluetoothClass
encodes zero or more service classes.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Constants
AUDIO
public static final int AUDIO
Constant Value:
2097152
(0x00200000)
CAPTURE
public static final int CAPTURE
Constant Value:
524288
(0x00080000)
public static final int INFORMATION
Constant Value:
8388608
(0x00800000)
LE_AUDIO
public static final int LE_AUDIO
Represent devices LE audio service
Constant Value:
16384
(0x00004000)
LIMITED_DISCOVERABILITY
public static final int LIMITED_DISCOVERABILITY
Constant Value:
8192
(0x00002000)
NETWORKING
public static final int NETWORKING
Constant Value:
131072
(0x00020000)
OBJECT_TRANSFER
public static final int OBJECT_TRANSFER
Constant Value:
1048576
(0x00100000)
POSITIONING
public static final int POSITIONING
Constant Value:
65536
(0x00010000)
RENDER
public static final int RENDER
Constant Value:
262144
(0x00040000)
TELEPHONY
public static final int TELEPHONY
Constant Value:
4194304
(0x00400000)
Public constructors
Service
public Service ()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# BluetoothClass.Service\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \\| [Ctors](#pubctors) \\| [Inherited Methods](#inhmethods) \n\nBluetoothClass.Service\n======================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/bluetooth/BluetoothClass.Service \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\nfinal\n\nclass\nBluetoothClass.Service\n`\n\n\n`\n\nextends `[Object](/reference/java/lang/Object)`\n\n\n`\n\n`\n\n\n`\n\n|---|------------------------------------------|\n| [java.lang.Object](/reference/java/lang/Object) ||\n| ↳ | android.bluetooth.BluetoothClass.Service |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nDefines all service class constants.\n\nEach [BluetoothClass](/reference/android/bluetooth/BluetoothClass) encodes zero or more service classes.\n\nSummary\n-------\n\n| ### Constants ||\n|-------|-------------------------------------------------------------------------------------------------------------|\n| `int` | [AUDIO](/reference/android/bluetooth/BluetoothClass.Service#AUDIO) |\n| `int` | [CAPTURE](/reference/android/bluetooth/BluetoothClass.Service#CAPTURE) |\n| `int` | [INFORMATION](/reference/android/bluetooth/BluetoothClass.Service#INFORMATION) |\n| `int` | [LE_AUDIO](/reference/android/bluetooth/BluetoothClass.Service#LE_AUDIO) Represent devices LE audio service |\n| `int` | [LIMITED_DISCOVERABILITY](/reference/android/bluetooth/BluetoothClass.Service#LIMITED_DISCOVERABILITY) |\n| `int` | [NETWORKING](/reference/android/bluetooth/BluetoothClass.Service#NETWORKING) |\n| `int` | [OBJECT_TRANSFER](/reference/android/bluetooth/BluetoothClass.Service#OBJECT_TRANSFER) |\n| `int` | [POSITIONING](/reference/android/bluetooth/BluetoothClass.Service#POSITIONING) |\n| `int` | [RENDER](/reference/android/bluetooth/BluetoothClass.Service#RENDER) |\n| `int` | [TELEPHONY](/reference/android/bluetooth/BluetoothClass.Service#TELEPHONY) |\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------|---|\n| ` `[Service](/reference/android/bluetooth/BluetoothClass.Service#Service())`() ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](/reference/java/lang/Object)` ` |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object. | | ` boolean` | ` `[equals](/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](/reference/java/lang/Object)` obj) ` Indicates whether some other object is \"equal to\" this one. | | ` void` | ` `[finalize](/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final `[Class](/reference/java/lang/Class)`\u003c?\u003e` | ` `[getClass](/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`. | | ` int` | ` `[hashCode](/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object. | | ` final void` | ` `[notify](/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` `[notifyAll](/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor. | | ` `[String](/reference/java/lang/String) | ` `[toString](/reference/java/lang/Object#toString())`() ` Returns a string representation of the object. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||\n\nConstants\n---------\n\n### AUDIO\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int AUDIO\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2097152\n(0x00200000)\n\n\n### CAPTURE\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int CAPTURE\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n524288\n(0x00080000)\n\n\n### INFORMATION\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int INFORMATION\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n8388608\n(0x00800000)\n\n\n### LE_AUDIO\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int LE_AUDIO\n```\n\nRepresent devices LE audio service\n\n\u003cbr /\u003e\n\nConstant Value:\n\n16384\n(0x00004000)\n\n\n### LIMITED_DISCOVERABILITY\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int LIMITED_DISCOVERABILITY\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n8192\n(0x00002000)\n\n\n### NETWORKING\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int NETWORKING\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n131072\n(0x00020000)\n\n\n### OBJECT_TRANSFER\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int OBJECT_TRANSFER\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1048576\n(0x00100000)\n\n\n### POSITIONING\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int POSITIONING\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n65536\n(0x00010000)\n\n\n### RENDER\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int RENDER\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n262144\n(0x00040000)\n\n\n### TELEPHONY\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int TELEPHONY\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n4194304\n(0x00400000)\n\n\nPublic constructors\n-------------------\n\n### Service\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic Service ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]