Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release
, bukan aosp-main
, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Referensi Struct btgatt_callbacks_t
#include <
bt_gatt.h
>
Callback BT-GATT
Definisi di baris
28
file
bt_gatt.h
.
Callback Klien GATT
Definisi di baris
33
dari file
bt_gatt.h
.
Callback Server GATT
Definisi di baris
36
dari file
bt_gatt.h
.
Tetapkan ke sizeof(btgatt_callbacks_t)
Definisi di baris
30
dari file
bt_gatt.h
.
Dokumentasi untuk struct ini dibuat dari file berikut:
-
hardware/libhardware/include/hardware/
bt_gatt.h
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# Android Hardware Abstraction Layer: btgatt_callbacks_t Struct Reference\n\nbtgatt_callbacks_t Struct Reference\n===================================\n\n[Data Fields](#pub-attribs) \nbtgatt_callbacks_t Struct Reference \n\n`\n#include \u003c\n`[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)`\n\u003e\n`\n\n|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/structbtgatt__callbacks__t#a854352f53b148adc24983a58a1866d66) |\n| ||\n| const [btgatt_client_callbacks_t](/reference/hal/structbtgatt__client__callbacks__t) \\* | [client](/reference/hal/structbtgatt__callbacks__t#a465c074bdf795e82cf341994321ed96d) |\n| ||\n| const [btgatt_server_callbacks_t](/reference/hal/structbtgatt__server__callbacks__t) \\* | [server](/reference/hal/structbtgatt__callbacks__t#aed3397f94e5b2f8e7deb800a2e93fe99) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nBT-GATT callbacks\n\n\nDefinition at line\n[28](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\nField Documentation\n-------------------\n\n\n|------------------------------------------------------------------------------------------------|\n| const [btgatt_client_callbacks_t](/reference/hal/structbtgatt__client__callbacks__t) \\* client |\n\n\nGATT Client callbacks\n\n\nDefinition at line\n[33](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n|------------------------------------------------------------------------------------------------|\n| const [btgatt_server_callbacks_t](/reference/hal/structbtgatt__server__callbacks__t) \\* server |\n\n\nGATT Server callbacks\n\n\nDefinition at line\n[36](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n|-------------|\n| size_t size |\n\n\nSet to sizeof(btgatt_callbacks_t)\n\n\nDefinition at line\n[30](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)"]]