Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrorBluetoothNotAllowed int = 2 ErrorBluetoothNotEnabled int = 1 ErrorDeviceNotBonded int = 3 ErrorGattWriteNotAllowed int = 200 ErrorGattWriteRequestBusy int = 201 ErrorMissingBluetoothConnectPermission int = 6 ErrorProfileServiceNotBound int = 9 ErrorUnknown int = 2147483647 FeatureNotConfigured int = 30 FeatureNotSupported int = 11 FeatureSupported int = 10 Success int = 0 AppConfigRegistrationFailure int = 1 AppConfigRegistrationSuccess int = 0 AppConfigUnregistrationFailure int = 3 AppConfigUnregistrationSuccess int = 2 ChannelTypeReliable int = 10 ChannelTypeStreaming int = 11 SinkRole int = 2 SourceRole int = 1 StateChannelConnected int = 2 StateChannelConnecting int = 1 StateChannelDisconnected int = 0 StateChannelDisconnecting int = 3 Creator int = 0 Max int = -1 ServiceBestEffort int = 1 ServiceGuaranteed int = 2 ServiceNoTraffic int = 0 StateNotPlaying int = 11 StatePlaying int = 10 AddressTypeAnonymous int = 255 AddressTypePublic int = 0 AddressTypeRandom int = 1 AddressTypeUnknown int = 65535 BondBonded int = 12 BondBonding int = 11 BondNone int = 10 DeviceTypeClassic int = 1 DeviceTypeDual int = 3 DeviceTypeLe int = 2 DeviceTypeUnknown int = 0 EncryptionAlgorithmAes int = 2 EncryptionAlgorithmE0 int = 1 EncryptionAlgorithmNone int = 0 Error int = -2147483648 PairingVariantPasskeyConfirmation int = 2 PairingVariantPin int = 0 PhyLe1m int = 1 PhyLe1mMask int = 1 PhyLe2m int = 2 PhyLe2mMask int = 2 PhyLeCoded int = 3 PhyLeCodedMask int = 4 PhyOptionNoPreferred int = 0 PhyOptionS2 int = 1 PhyOptionS8 int = 2 TransportAuto int = 0 TransportBredr int = 1 TransportLe int = 2 FormatFloat int = 52 FormatSfloat int = 50 FormatSint16 int = 34 FormatSint32 int = 36 FormatSint8 int = 33 FormatUint16 int = 18 FormatUint32 int = 20 FormatUint8 int = 17 PermissionRead int = 1 PermissionReadEncrypted int = 2 PermissionReadEncryptedMitm int = 4 PermissionWrite int = 16 PermissionWriteEncrypted int = 32 PermissionWriteEncryptedMitm int = 64 PermissionWriteSigned int = 128 PermissionWriteSignedMitm int = 256 PropertyBroadcast int = 1 PropertyExtendedProps int = 128 PropertyIndicate int = 32 PropertyNotify int = 16 PropertyRead int = 2 PropertySignedWrite int = 64 PropertyWrite int = 8 PropertyWriteNoResponse int = 4 WriteTypeDefault int = 2 WriteTypeNoResponse int = 1 WriteTypeSigned int = 4 ScanModeConnectable int = 21 ScanModeConnectableDiscoverable int = 23 ScanModeNone int = 20 StateConnected int = 2 StateConnecting int = 1 StateDisconnected int = 0 StateDisconnecting int = 3 StateOff int = 10 StateOn int = 12 StateTurningOff int = 13 StateTurningOn int = 11 ProfileA2dp int = 1 ProfileHeadset int = 0 ProfileHid int = 3 AudioVideoCamcorder int = 1076 AudioVideoCarAudio int = 1056 AudioVideoHandsfree int = 1032 AudioVideoHeadphones int = 1048 AudioVideoHifiAudio int = 1064 AudioVideoLoudspeaker int = 1044 AudioVideoMicrophone int = 1040 AudioVideoPortableAudio int = 1052 AudioVideoSetTopBox int = 1060 AudioVideoUncategorized int = 1024 AudioVideoVcr int = 1068 AudioVideoVideoCamera int = 1072 AudioVideoVideoConferencing int = 1088 AudioVideoVideoDisplayAndLoudspeaker int = 1084 AudioVideoVideoGamingToy int = 1096 AudioVideoVideoMonitor int = 1080 AudioVideoWearableHeadset int = 1028 ComputerDesktop int = 260 ComputerHandheldPcPda int = 272 ComputerLaptop int = 268 ComputerPalmSizePcPda int = 276 ComputerServer int = 264 ComputerUncategorized int = 256 ComputerWearable int = 280 HealthBloodPressure int = 2308 HealthDataDisplay int = 2332 HealthGlucose int = 2320 HealthPulseOximeter int = 2324 HealthPulseRate int = 2328 HealthThermometer int = 2312 HealthUncategorized int = 2304 HealthWeighing int = 2316 PeripheralKeyboard int = 1344 PeripheralKeyboardPointing int = 1472 PeripheralNonKeyboardNonPointing int = 1280 PeripheralPointing int = 1408 PhoneCellular int = 516 PhoneCordless int = 520 PhoneIsdn int = 532 PhoneModemOrGateway int = 528 PhoneSmart int = 524 PhoneUncategorized int = 512 ToyController int = 2064 ToyDollActionFigure int = 2060 ToyGame int = 2068 ToyRobot int = 2052 ToyUncategorized int = 2048 ToyVehicle int = 2056 WearableGlasses int = 1812 WearableHelmet int = 1808 WearableJacket int = 1804 WearablePager int = 1800 WearableUncategorized int = 1792 WearableWristWatch int = 1796 Audio int = 2097152 Capture int = 524288 Information int = 8388608 LeAudioConst int = 16384 LimitedDiscoverability int = 8192 Networking int = 131072 ObjectTransfer int = 1048576 Positioning int = 65536 Render int = 262144 Telephony int = 4194304 BitsPerSample16 int = 1 BitsPerSample24 int = 2 BitsPerSample32 int = 4 BitsPerSampleNone int = 0 ChannelModeMono int = 1 ChannelModeNone int = 0 ChannelModeStereo int = 2 CodecPriorityDefault int = 0 CodecPriorityDisabled int = -1 CodecPriorityHighest int = 1000000 SampleRate176400 int = 16 SampleRate192000 int = 32 SampleRate44100 int = 1 SampleRate48000 int = 2 SampleRate88200 int = 4 SampleRate96000 int = 8 SampleRateNone int = 0 SourceCodecTypeAac int = 1 SourceCodecTypeAptx int = 2 SourceCodecTypeAptxHd int = 3 SourceCodecTypeInvalid int = 1000000 SourceCodecTypeLc3 int = 5 SourceCodecTypeLdac int = 4 SourceCodecTypeOpus int = 6 SourceCodecTypeSbc int = 0 BluetoothOffFailure int = 15 L2capAclFailure int = 2 L2capClientSecurityFailure int = 3 L2capInsufficientAuthentication int = 4 L2capInsufficientAuthorization int = 5 L2capInsufficientEncryption int = 7 L2capInsufficientEncryptKeySize int = 6 L2capInvalidParameters int = 11 L2capInvalidSourceCid int = 8 L2capNoPsmAvailable int = 13 L2capNoResources int = 12 L2capSourceCidAlreadyAllocated int = 9 L2capTimeout int = 14 L2capUnacceptableParameters int = 10 L2capUnknown int = 1 NullDevice int = 19 RpcFailure int = 20 SocketClosed int = 17 SocketConnectionFailure int = 18 SocketManagerFailure int = 16 UnixFileSocketCreationFailure int = 21 Unspecified int = 0 ChannelCount1 int = 1 ChannelCount2 int = 2 ChannelCountNone int = 0 FrameDuration10000 int = 2 FrameDuration7500 int = 1 FrameDurationNone int = 0 SampleRate11025 int = 2 SampleRate16000 int = 4 SampleRate22050 int = 8 SampleRate24000 int = 16 SampleRate32000 int = 32 SampleRate384000 int = 4096 SampleRate8000 int = 1 DisableNotificationValue int = 0 EnableIndicationValue int = 0 EnableNotificationValue int = 0 ServiceTypePrimary int = 0 ServiceTypeSecondary int = 1 GroupIdInvalid int = -1 A2dpConst int = 2 CsipSetCoordinatorConst int = 25 GattConst int = 7 GattServerConst int = 8 HapClient int = 28 HeadsetConst int = 1 HealthConst int = 3 HearingAidConst int = 21 HidDeviceConst int = 19 Sap int = 10 ErrorRspInvalidParam int = 4 ErrorRspInvalidRptId int = 2 ErrorRspNotReady int = 1 ErrorRspSuccess int = 0 ErrorRspUnknown int = 14 ErrorRspUnsupportedReq int = 3 ProtocolBootMode int = 0 ProtocolReportMode int = 1 ReportTypeFeature int = 3 ReportTypeInput int = 1 ReportTypeOutput int = 2 Subclass1Combo int = -64 Subclass1Keyboard int = 64 Subclass1Mouse int = -128 Subclass1None int = 0 Subclass2CardReader int = 6 Subclass2DigitizerTablet int = 5 Subclass2Gamepad int = 2 Subclass2Joystick int = 1 Subclass2RemoteControl int = 3 Subclass2SensingDevice int = 4 Subclass2Uncategorized int = 0 AampOfAmerica int = 190 AccelSemiconductor int = 74 AceSensor int = 188 Adidas int = 195 AdvancedPanmobilSystems int = 145 AirohaTechnology int = 148 Alcatel int = 36 Alpwise int = 154 AmiccomElectronics int = 192 Aplix int = 189 Apple int = 76 AptLicensing int = 79 Archos int = 207 ArpDevices int = 168 AtherosCommunications int = 69 Atmel int = 19 AustcoCommunicationSystems int = 213 AutonetMobile int = 127 Avago int = 78 AvmBerlin int = 31 AAndDEngineering int = 105 AAndRCambridge int = 124 Bandspeed int = 32 BandXiInternational int = 100 BdeTechnology int = 180 BeatsElectronics int = 204 BeautifulEnterprise int = 108 Bekey int = 178 BelkinInternational int = 92 Binauric int = 203 Biosentronics int = 219 Bluegiga int = 71 Blueradios int = 133 BluetoothSig int = 63 BluetrekTechnologies int = 151 Bose int = 158 Briartek int = 109 Broadcom int = 15 CaenRfid int = 170 CambridgeSiliconRadio int = 10 Catc int = 52 Cinetix int = 175 ClarinoxTechnologies int = 179 Colorfy int = 156 Commil int = 51 ConexantSystems int = 28 Connectblue int = 113 ContinentalAutomotive int = 75 ConwiseTechnology int = 66 CreativeTechnology int = 118 CTechnologies int = 38 Danlers int = 225 DelormePublishingCompany int = 128 Dexcom int = 208 DialogSemiconductor int = 210 Digianswer int = 12 Eclipse int = 53 Ecotest int = 136 ElgatoSystems int = 206 EmMicroelectronicMarin int = 90 EquinoxAg int = 134 EricssonTechnology int = 0 Evluma int = 201 Free2move int = 83 FunaiElectric int = 144 GarminInternational int = 135 GctSemiconductor int = 45 Gelo int = 200 Geneq int = 194 GeneralMotors int = 104 Gennum int = 59 Geoforce int = 157 GibsonGuitars int = 98 GnNetcom int = 103 GnResound int = 137 Google int = 224 GreenThrottleGames int = 172 GroupSense int = 115 HanlynnTechnologies int = 123 HarmanInternational int = 87 HewlettPackard int = 101 Hitachi int = 41 Hosiden int = 221 Ibm int = 3 InfineonTechnologies int = 9 IngenieurSystemgruppeZahn int = 171 IntegratedSiliconSolution int = 65 IntegratedSystemSolution int = 57 Intel int = 2 Inventel int = 30 Ipextreme int = 61 ITechDynamicGlobalDistribution int = 153 Jawbone int = 138 JiangsuToppowerAutomotiveElectronics int = 155 JohnsonControls int = 185 JAndM int = 82 Kawantech int = 212 KcTechnology int = 22 KensingtonComputerProductsGroup int = 160 LairdTechnologies int = 119 Lesswire int = 121 LgElectronics int = 196 Linak int = 164 Lucent int = 7 LudusHelsinki int = 132 Macronix int = 44 MagnetiMarelli int = 169 Mansella int = 33 Marvell int = 72 MatsushitaElectric int = 58 Mc10 int = 202 Mediatek int = 70 MesoInternational int = 182 MetaWatch int = 163 MewtelTechnology int = 47 Micommand int = 99 MicrochipTechnology int = 205 Microsoft int = 6 Mindtree int = 106 MisfitWearables int = 223 MitelSemiconductor int = 16 MitsubishiElectric int = 20 MobilianCorporation int = 55 Monster int = 112 Motorola int = 8 MstarSemiconductor int = 122 Muzik int = 222 Nec int = 34 NecLighting int = 149 Newlogic int = 23 Nike int = 120 NineSolutions int = 102 NokiaMobilePhones int = 1 NordicSemiconductor int = 89 NorwoodSystems int = 46 OdmTechnology int = 150 Omegawave int = 174 OnsetComputer int = 197 OpenInterface int = 39 OtlDynamics int = 165 PandaOcean int = 166 Parrot int = 67 ParthusTechnologies int = 14 PassifSemiconductor int = 176 PeterSystemtechnik int = 173 PhilipsSemiconductors int = 37 Plantronics int = 85 PolarElectro int = 107 PolarElectroEurope int = 209 ProcterAndGamble int = 220 Qualcomm int = 29 QualcommConnectedExperiences int = 216 QualcommInnovationCenter int = 184 QualcommLabs int = 140 QualcommTechnologies int = 215 Quintic int = 142 Quuppa int = 199 RalinkTechnology int = 91 RdaMicroelectronics int = 97 RealtekSemiconductor int = 93 RedM int = 50 RenesasTechnology int = 54 ResearchInMotion int = 60 RfMicroDevices int = 40 Rivierawaves int = 96 RohdeAndSchwarz int = 25 RtxTelecom int = 21 SamsungElectronics int = 117 SarisCyclingGroup int = 177 SeersTechnology int = 125 SeikoEpson int = 64 Selfly int = 198 Semilink int = 226 SennheiserCommunications int = 130 ShanghaiSuperSmartElectronics int = 114 ShenzhenExcelsecuDataTechnology int = 193 SigniaTechnologies int = 27 SiliconWave int = 11 SirfTechnology int = 80 SocketMobile int = 68 SonyEricsson int = 86 SoundId int = 111 SportsTrackingTechnologies int = 126 SrMedizinelektronik int = 161 StaccatoCommunications int = 77 StalmartTechnology int = 191 StarkeyLaboratories int = 186 StollmanEPlusV int = 143 StonestreetOne int = 94 StMicroelectronics int = 48 SummitDataCommunications int = 110 Suunto int = 159 SwirlNetworks int = 181 SymbolTechnologies int = 42 Synopsys int = 49 SystemsAndChips int = 62 SPowerElectronics int = 187 TaixingbangTechnology int = 211 Tenovis int = 43 Terax int = 56 TexasInstruments int = 13 Thinkoptics int = 146 Threecom int = 5 ThreeDijoy int = 84 ThreeDsp int = 73 TimekeepingSystems int = 131 TimexGroupUsa int = 214 TopcornPositioningSystems int = 139 Toshiba int = 4 Transilica int = 24 Trelab int = 183 Ttpcom int = 26 Txtr int = 218 TzeroTechnologies int = 81 UniversalElectronics int = 147 Vertu int = 162 Visteon int = 167 Vizio int = 88 VoyetraTurtleBeach int = 217 WaveplusTechnology int = 35 Wicentric int = 95 Widcomm int = 17 WuxiVimicro int = 129 Zeevo int = 18 Zer01Tv int = 152 Zomm int = 116 ZscanSoftware int = 141 AtCmdTypeAction int = 4 AtCmdTypeBasic int = 3 AtCmdTypeRead int = 0 AtCmdTypeSet int = 2 AtCmdTypeTest int = 1 StateAudioConnected int = 12 StateAudioConnecting int = 11 StateAudioDisconnected int = 10 ConnectionPriorityBalanced int = 0 ConnectionPriorityDck int = 3 ConnectionPriorityHigh int = 1 ConnectionPriorityLowPower int = 2 GattConnectionCongested int = 143 GattConnectionTimeout int = 147 GattFailure int = 257 GattInsufficientAuthentication int = 5 GattInsufficientAuthorization int = 8 GattInsufficientEncryption int = 15 GattInvalidAttributeLength int = 13 GattInvalidOffset int = 7 GattReadNotPermitted int = 2 GattRequestNotSupported int = 6 GattSuccess int = 0 GattWriteNotPermitted int = 3 TypeL2cap int = 3 TypeLe int = 4 TypeRfcomm int = 1 TypeSco int = 2 )
View Source
const ( ExtraCodecStatus string = "android.bluetooth.extra.CODEC_STATUS" ActionConnectionStateChanged string = "android.bluetooth.a2dp.profile.action.CONNECTION_STATE_CHANGED" ActionPlayingStateChanged string = "android.bluetooth.a2dp.profile.action.PLAYING_STATE_CHANGED" ActionAclConnected string = "android.bluetooth.device.action.ACL_CONNECTED" ActionAclDisconnected string = "android.bluetooth.device.action.ACL_DISCONNECTED" ActionAclDisconnectRequested string = "android.bluetooth.device.action.ACL_DISCONNECT_REQUESTED" ActionAliasChanged string = "android.bluetooth.device.action.ALIAS_CHANGED" ActionBondStateChanged string = "android.bluetooth.device.action.BOND_STATE_CHANGED" ActionClassChanged string = "android.bluetooth.device.action.CLASS_CHANGED" ActionEncryptionChange string = "android.bluetooth.device.action.ENCRYPTION_CHANGE" ActionFound string = "android.bluetooth.device.action.FOUND" ActionKeyMissing string = "android.bluetooth.device.action.KEY_MISSING" ActionNameChanged string = "android.bluetooth.device.action.NAME_CHANGED" ActionPairingRequest string = "android.bluetooth.device.action.PAIRING_REQUEST" ActionUuid string = "android.bluetooth.device.action.UUID" ExtraBondState string = "android.bluetooth.device.extra.BOND_STATE" ExtraClass string = "android.bluetooth.device.extra.CLASS" ExtraDevice string = "android.bluetooth.device.extra.DEVICE" ExtraEncryptionAlgorithm string = "android.bluetooth.device.extra.EXTRA_ENCRYPTION_ALGORITHM" ExtraEncryptionEnabled string = "android.bluetooth.device.extra.ENCRYPTION_ENABLED" ExtraEncryptionStatus string = "android.bluetooth.device.extra.ENCRYPTION_STATUS" ExtraIsCoordinatedSetMember string = "android.bluetooth.extra.IS_COORDINATED_SET_MEMBER" ExtraKeySize string = "android.bluetooth.device.extra.KEY_SIZE" ExtraName string = "android.bluetooth.device.extra.NAME" ExtraPairingKey string = "android.bluetooth.device.extra.PAIRING_KEY" ExtraPairingVariant string = "android.bluetooth.device.extra.PAIRING_VARIANT" ExtraPreviousBondState string = "android.bluetooth.device.extra.PREVIOUS_BOND_STATE" ExtraRssi string = "android.bluetooth.device.extra.RSSI" ExtraTransport string = "android.bluetooth.device.extra.TRANSPORT" ExtraUuid string = "android.bluetooth.device.extra.UUID" ActionDiscoveryFinished string = "android.bluetooth.adapter.action.DISCOVERY_FINISHED" ActionDiscoveryStarted string = "android.bluetooth.adapter.action.DISCOVERY_STARTED" ActionLocalNameChanged string = "android.bluetooth.adapter.action.LOCAL_NAME_CHANGED" ActionRequestDiscoverable string = "android.bluetooth.adapter.action.REQUEST_DISCOVERABLE" ActionRequestEnable string = "android.bluetooth.adapter.action.REQUEST_ENABLE" ActionScanModeChanged string = "android.bluetooth.adapter.action.SCAN_MODE_CHANGED" ActionStateChanged string = "android.bluetooth.adapter.action.STATE_CHANGED" ExtraConnectionState string = "android.bluetooth.adapter.extra.CONNECTION_STATE" ExtraDiscoverableDuration string = "android.bluetooth.adapter.extra.DISCOVERABLE_DURATION" ExtraLocalName string = "android.bluetooth.adapter.extra.LOCAL_NAME" ExtraPreviousConnectionState string = "android.bluetooth.adapter.extra.PREVIOUS_CONNECTION_STATE" ExtraPreviousScanMode string = "android.bluetooth.adapter.extra.PREVIOUS_SCAN_MODE" ExtraPreviousState string = "android.bluetooth.adapter.extra.PREVIOUS_STATE" ExtraScanMode string = "android.bluetooth.adapter.extra.SCAN_MODE" ExtraState string = "android.bluetooth.adapter.extra.STATE" ActionLeAudioConnectionStateChanged string = "android.bluetooth.action.LE_AUDIO_CONNECTION_STATE_CHANGED" ActionCsisConnectionStateChanged string = "android.bluetooth.action.CSIS_CONNECTION_STATE_CHANGED" ExtraLeAudioCodecStatus string = "android.bluetooth.extra.LE_AUDIO_CODEC_STATUS" ActionAudioStateChanged string = "android.bluetooth.headset.profile.action.AUDIO_STATE_CHANGED" ActionVendorSpecificHeadsetEvent string = "android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT" ExtraVendorSpecificHeadsetEventArgs string = "android.bluetooth.headset.extra.VENDOR_SPECIFIC_HEADSET_EVENT_ARGS" ExtraVendorSpecificHeadsetEventCmd string = "android.bluetooth.headset.extra.VENDOR_SPECIFIC_HEADSET_EVENT_CMD" ExtraVendorSpecificHeadsetEventCmdType string = "android.bluetooth.headset.extra.VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE" VendorResultCodeCommandAndroid string = "+ANDROID" VendorSpecificHeadsetEventCompanyIdCategory string = "android.bluetooth.headset.intent.category.companyid" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.