bluetooth

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

Package bluetooth provides Go bindings for android.bluetooth.

Index

Constants

View Source
const (
	ErrorBluetoothNotAllowed               = consts.ErrorBluetoothNotAllowed
	ErrorBluetoothNotEnabled               = consts.ErrorBluetoothNotEnabled
	ErrorDeviceNotBonded                   = consts.ErrorDeviceNotBonded
	ErrorGattWriteNotAllowed               = consts.ErrorGattWriteNotAllowed
	ErrorGattWriteRequestBusy              = consts.ErrorGattWriteRequestBusy
	ErrorMissingBluetoothConnectPermission = consts.ErrorMissingBluetoothConnectPermission
	ErrorProfileServiceNotBound            = consts.ErrorProfileServiceNotBound
	ErrorUnknown                           = consts.ErrorUnknown
	FeatureNotConfigured                   = consts.FeatureNotConfigured
	FeatureNotSupported                    = consts.FeatureNotSupported
	FeatureSupported                       = consts.FeatureSupported
	Success                                = consts.Success
	AppConfigRegistrationFailure           = consts.AppConfigRegistrationFailure
	AppConfigRegistrationSuccess           = consts.AppConfigRegistrationSuccess
	AppConfigUnregistrationFailure         = consts.AppConfigUnregistrationFailure
	AppConfigUnregistrationSuccess         = consts.AppConfigUnregistrationSuccess
	ChannelTypeReliable                    = consts.ChannelTypeReliable
	ChannelTypeStreaming                   = consts.ChannelTypeStreaming
	SinkRole                               = consts.SinkRole
	SourceRole                             = consts.SourceRole
	StateChannelConnected                  = consts.StateChannelConnected
	StateChannelConnecting                 = consts.StateChannelConnecting
	StateChannelDisconnected               = consts.StateChannelDisconnected
	StateChannelDisconnecting              = consts.StateChannelDisconnecting
	Creator                                = consts.Creator
	Max                                    = consts.Max
	ServiceBestEffort                      = consts.ServiceBestEffort
	ServiceGuaranteed                      = consts.ServiceGuaranteed
	ServiceNoTraffic                       = consts.ServiceNoTraffic
	StateNotPlaying                        = consts.StateNotPlaying
	StatePlaying                           = consts.StatePlaying
	AddressTypeAnonymous                   = consts.AddressTypeAnonymous
	AddressTypePublic                      = consts.AddressTypePublic
	AddressTypeRandom                      = consts.AddressTypeRandom
	AddressTypeUnknown                     = consts.AddressTypeUnknown
	BondBonded                             = consts.BondBonded
	BondBonding                            = consts.BondBonding
	BondNone                               = consts.BondNone
	DeviceTypeClassic                      = consts.DeviceTypeClassic
	DeviceTypeDual                         = consts.DeviceTypeDual
	DeviceTypeLe                           = consts.DeviceTypeLe
	DeviceTypeUnknown                      = consts.DeviceTypeUnknown
	EncryptionAlgorithmAes                 = consts.EncryptionAlgorithmAes
	EncryptionAlgorithmE0                  = consts.EncryptionAlgorithmE0
	EncryptionAlgorithmNone                = consts.EncryptionAlgorithmNone
	Error                                  = consts.Error
	PairingVariantPasskeyConfirmation      = consts.PairingVariantPasskeyConfirmation
	PairingVariantPin                      = consts.PairingVariantPin
	PhyLe1m                                = consts.PhyLe1m
	PhyLe1mMask                            = consts.PhyLe1mMask
	PhyLe2m                                = consts.PhyLe2m
	PhyLe2mMask                            = consts.PhyLe2mMask
	PhyLeCoded                             = consts.PhyLeCoded
	PhyLeCodedMask                         = consts.PhyLeCodedMask
	PhyOptionNoPreferred                   = consts.PhyOptionNoPreferred
	PhyOptionS2                            = consts.PhyOptionS2
	PhyOptionS8                            = consts.PhyOptionS8
	TransportAuto                          = consts.TransportAuto
	TransportBredr                         = consts.TransportBredr
	TransportLe                            = consts.TransportLe
	FormatFloat                            = consts.FormatFloat
	FormatSfloat                           = consts.FormatSfloat
	FormatSint16                           = consts.FormatSint16
	FormatSint32                           = consts.FormatSint32
	FormatSint8                            = consts.FormatSint8
	FormatUint16                           = consts.FormatUint16
	FormatUint32                           = consts.FormatUint32
	FormatUint8                            = consts.FormatUint8
	PermissionRead                         = consts.PermissionRead
	PermissionReadEncrypted                = consts.PermissionReadEncrypted
	PermissionReadEncryptedMitm            = consts.PermissionReadEncryptedMitm
	PermissionWrite                        = consts.PermissionWrite
	PermissionWriteEncrypted               = consts.PermissionWriteEncrypted
	PermissionWriteEncryptedMitm           = consts.PermissionWriteEncryptedMitm
	PermissionWriteSigned                  = consts.PermissionWriteSigned
	PermissionWriteSignedMitm              = consts.PermissionWriteSignedMitm
	PropertyBroadcast                      = consts.PropertyBroadcast
	PropertyExtendedProps                  = consts.PropertyExtendedProps
	PropertyIndicate                       = consts.PropertyIndicate
	PropertyNotify                         = consts.PropertyNotify
	PropertyRead                           = consts.PropertyRead
	PropertySignedWrite                    = consts.PropertySignedWrite
	PropertyWrite                          = consts.PropertyWrite
	PropertyWriteNoResponse                = consts.PropertyWriteNoResponse
	WriteTypeDefault                       = consts.WriteTypeDefault
	WriteTypeNoResponse                    = consts.WriteTypeNoResponse
	WriteTypeSigned                        = consts.WriteTypeSigned
	ScanModeConnectable                    = consts.ScanModeConnectable
	ScanModeConnectableDiscoverable        = consts.ScanModeConnectableDiscoverable
	ScanModeNone                           = consts.ScanModeNone
	StateConnected                         = consts.StateConnected
	StateConnecting                        = consts.StateConnecting
	StateDisconnected                      = consts.StateDisconnected
	StateDisconnecting                     = consts.StateDisconnecting
	StateOff                               = consts.StateOff
	StateOn                                = consts.StateOn
	StateTurningOff                        = consts.StateTurningOff
	StateTurningOn                         = consts.StateTurningOn
	ProfileA2dp                            = consts.ProfileA2dp
	ProfileHeadset                         = consts.ProfileHeadset
	ProfileHid                             = consts.ProfileHid
	AudioVideoCamcorder                    = consts.AudioVideoCamcorder
	AudioVideoCarAudio                     = consts.AudioVideoCarAudio
	AudioVideoHandsfree                    = consts.AudioVideoHandsfree
	AudioVideoHeadphones                   = consts.AudioVideoHeadphones
	AudioVideoHifiAudio                    = consts.AudioVideoHifiAudio
	AudioVideoLoudspeaker                  = consts.AudioVideoLoudspeaker
	AudioVideoMicrophone                   = consts.AudioVideoMicrophone
	AudioVideoPortableAudio                = consts.AudioVideoPortableAudio
	AudioVideoSetTopBox                    = consts.AudioVideoSetTopBox
	AudioVideoUncategorized                = consts.AudioVideoUncategorized
	AudioVideoVcr                          = consts.AudioVideoVcr
	AudioVideoVideoCamera                  = consts.AudioVideoVideoCamera
	AudioVideoVideoConferencing            = consts.AudioVideoVideoConferencing
	AudioVideoVideoDisplayAndLoudspeaker   = consts.AudioVideoVideoDisplayAndLoudspeaker
	AudioVideoVideoGamingToy               = consts.AudioVideoVideoGamingToy
	AudioVideoVideoMonitor                 = consts.AudioVideoVideoMonitor
	AudioVideoWearableHeadset              = consts.AudioVideoWearableHeadset
	ComputerDesktop                        = consts.ComputerDesktop
	ComputerHandheldPcPda                  = consts.ComputerHandheldPcPda
	ComputerLaptop                         = consts.ComputerLaptop
	ComputerPalmSizePcPda                  = consts.ComputerPalmSizePcPda
	ComputerServer                         = consts.ComputerServer
	ComputerUncategorized                  = consts.ComputerUncategorized
	ComputerWearable                       = consts.ComputerWearable
	HealthBloodPressure                    = consts.HealthBloodPressure
	HealthDataDisplay                      = consts.HealthDataDisplay
	HealthGlucose                          = consts.HealthGlucose
	HealthPulseOximeter                    = consts.HealthPulseOximeter
	HealthPulseRate                        = consts.HealthPulseRate
	HealthThermometer                      = consts.HealthThermometer
	HealthUncategorized                    = consts.HealthUncategorized
	HealthWeighing                         = consts.HealthWeighing
	PeripheralKeyboard                     = consts.PeripheralKeyboard
	PeripheralKeyboardPointing             = consts.PeripheralKeyboardPointing
	PeripheralNonKeyboardNonPointing       = consts.PeripheralNonKeyboardNonPointing
	PeripheralPointing                     = consts.PeripheralPointing
	PhoneCellular                          = consts.PhoneCellular
	PhoneCordless                          = consts.PhoneCordless
	PhoneIsdn                              = consts.PhoneIsdn
	PhoneModemOrGateway                    = consts.PhoneModemOrGateway
	PhoneSmart                             = consts.PhoneSmart
	PhoneUncategorized                     = consts.PhoneUncategorized
	ToyController                          = consts.ToyController
	ToyDollActionFigure                    = consts.ToyDollActionFigure
	ToyGame                                = consts.ToyGame
	ToyRobot                               = consts.ToyRobot
	ToyUncategorized                       = consts.ToyUncategorized
	ToyVehicle                             = consts.ToyVehicle
	WearableGlasses                        = consts.WearableGlasses
	WearableHelmet                         = consts.WearableHelmet
	WearableJacket                         = consts.WearableJacket
	WearablePager                          = consts.WearablePager
	WearableUncategorized                  = consts.WearableUncategorized
	WearableWristWatch                     = consts.WearableWristWatch
	Audio                                  = consts.Audio
	Capture                                = consts.Capture
	Information                            = consts.Information
	LeAudioConst                           = consts.LeAudioConst
	LimitedDiscoverability                 = consts.LimitedDiscoverability
	Networking                             = consts.Networking
	ObjectTransfer                         = consts.ObjectTransfer
	Positioning                            = consts.Positioning
	Render                                 = consts.Render
	Telephony                              = consts.Telephony
	BitsPerSample16                        = consts.BitsPerSample16
	BitsPerSample24                        = consts.BitsPerSample24
	BitsPerSample32                        = consts.BitsPerSample32
	BitsPerSampleNone                      = consts.BitsPerSampleNone
	ChannelModeMono                        = consts.ChannelModeMono
	ChannelModeNone                        = consts.ChannelModeNone
	ChannelModeStereo                      = consts.ChannelModeStereo
	CodecPriorityDefault                   = consts.CodecPriorityDefault
	CodecPriorityDisabled                  = consts.CodecPriorityDisabled
	CodecPriorityHighest                   = consts.CodecPriorityHighest
	SampleRate176400                       = consts.SampleRate176400
	SampleRate192000                       = consts.SampleRate192000
	SampleRate44100                        = consts.SampleRate44100
	SampleRate48000                        = consts.SampleRate48000
	SampleRate88200                        = consts.SampleRate88200
	SampleRate96000                        = consts.SampleRate96000
	SampleRateNone                         = consts.SampleRateNone
	SourceCodecTypeAac                     = consts.SourceCodecTypeAac
	SourceCodecTypeAptx                    = consts.SourceCodecTypeAptx
	SourceCodecTypeAptxHd                  = consts.SourceCodecTypeAptxHd
	SourceCodecTypeInvalid                 = consts.SourceCodecTypeInvalid
	SourceCodecTypeLc3                     = consts.SourceCodecTypeLc3
	SourceCodecTypeLdac                    = consts.SourceCodecTypeLdac
	SourceCodecTypeOpus                    = consts.SourceCodecTypeOpus
	SourceCodecTypeSbc                     = consts.SourceCodecTypeSbc
	BluetoothOffFailure                    = consts.BluetoothOffFailure
	L2capAclFailure                        = consts.L2capAclFailure
	L2capClientSecurityFailure             = consts.L2capClientSecurityFailure
	L2capInsufficientAuthentication        = consts.L2capInsufficientAuthentication
	L2capInsufficientAuthorization         = consts.L2capInsufficientAuthorization
	L2capInsufficientEncryption            = consts.L2capInsufficientEncryption
	L2capInsufficientEncryptKeySize        = consts.L2capInsufficientEncryptKeySize
	L2capInvalidParameters                 = consts.L2capInvalidParameters
	L2capInvalidSourceCid                  = consts.L2capInvalidSourceCid
	L2capNoPsmAvailable                    = consts.L2capNoPsmAvailable
	L2capNoResources                       = consts.L2capNoResources
	L2capSourceCidAlreadyAllocated         = consts.L2capSourceCidAlreadyAllocated
	L2capTimeout                           = consts.L2capTimeout
	L2capUnacceptableParameters            = consts.L2capUnacceptableParameters
	L2capUnknown                           = consts.L2capUnknown
	NullDevice                             = consts.NullDevice
	RpcFailure                             = consts.RpcFailure
	SocketClosed                           = consts.SocketClosed
	SocketConnectionFailure                = consts.SocketConnectionFailure
	SocketManagerFailure                   = consts.SocketManagerFailure
	UnixFileSocketCreationFailure          = consts.UnixFileSocketCreationFailure
	Unspecified                            = consts.Unspecified
	ChannelCount1                          = consts.ChannelCount1
	ChannelCount2                          = consts.ChannelCount2
	ChannelCountNone                       = consts.ChannelCountNone
	FrameDuration10000                     = consts.FrameDuration10000
	FrameDuration7500                      = consts.FrameDuration7500
	FrameDurationNone                      = consts.FrameDurationNone
	SampleRate11025                        = consts.SampleRate11025
	SampleRate16000                        = consts.SampleRate16000
	SampleRate22050                        = consts.SampleRate22050
	SampleRate24000                        = consts.SampleRate24000
	SampleRate32000                        = consts.SampleRate32000
	SampleRate384000                       = consts.SampleRate384000
	SampleRate8000                         = consts.SampleRate8000
	DisableNotificationValue               = consts.DisableNotificationValue
	EnableIndicationValue                  = consts.EnableIndicationValue
	EnableNotificationValue                = consts.EnableNotificationValue
	ServiceTypePrimary                     = consts.ServiceTypePrimary
	ServiceTypeSecondary                   = consts.ServiceTypeSecondary
	GroupIdInvalid                         = consts.GroupIdInvalid
	A2dpConst                              = consts.A2dpConst
	CsipSetCoordinatorConst                = consts.CsipSetCoordinatorConst
	GattConst                              = consts.GattConst
	GattServerConst                        = consts.GattServerConst
	HapClient                              = consts.HapClient
	HeadsetConst                           = consts.HeadsetConst
	HealthConst                            = consts.HealthConst
	HearingAidConst                        = consts.HearingAidConst
	HidDeviceConst                         = consts.HidDeviceConst
	Sap                                    = consts.Sap
	ErrorRspInvalidParam                   = consts.ErrorRspInvalidParam
	ErrorRspInvalidRptId                   = consts.ErrorRspInvalidRptId
	ErrorRspNotReady                       = consts.ErrorRspNotReady
	ErrorRspSuccess                        = consts.ErrorRspSuccess
	ErrorRspUnknown                        = consts.ErrorRspUnknown
	ErrorRspUnsupportedReq                 = consts.ErrorRspUnsupportedReq
	ProtocolBootMode                       = consts.ProtocolBootMode
	ProtocolReportMode                     = consts.ProtocolReportMode
	ReportTypeFeature                      = consts.ReportTypeFeature
	ReportTypeInput                        = consts.ReportTypeInput
	ReportTypeOutput                       = consts.ReportTypeOutput
	Subclass1Combo                         = consts.Subclass1Combo
	Subclass1Keyboard                      = consts.Subclass1Keyboard
	Subclass1Mouse                         = consts.Subclass1Mouse
	Subclass1None                          = consts.Subclass1None
	Subclass2CardReader                    = consts.Subclass2CardReader
	Subclass2DigitizerTablet               = consts.Subclass2DigitizerTablet
	Subclass2Gamepad                       = consts.Subclass2Gamepad
	Subclass2Joystick                      = consts.Subclass2Joystick
	Subclass2RemoteControl                 = consts.Subclass2RemoteControl
	Subclass2SensingDevice                 = consts.Subclass2SensingDevice
	Subclass2Uncategorized                 = consts.Subclass2Uncategorized
	AampOfAmerica                          = consts.AampOfAmerica
	AccelSemiconductor                     = consts.AccelSemiconductor
	AceSensor                              = consts.AceSensor
	Adidas                                 = consts.Adidas
	AdvancedPanmobilSystems                = consts.AdvancedPanmobilSystems
	AirohaTechnology                       = consts.AirohaTechnology
	Alcatel                                = consts.Alcatel
	Alpwise                                = consts.Alpwise
	AmiccomElectronics                     = consts.AmiccomElectronics
	Aplix                                  = consts.Aplix
	Apple                                  = consts.Apple
	AptLicensing                           = consts.AptLicensing
	Archos                                 = consts.Archos
	ArpDevices                             = consts.ArpDevices
	AtherosCommunications                  = consts.AtherosCommunications
	Atmel                                  = consts.Atmel
	AustcoCommunicationSystems             = consts.AustcoCommunicationSystems
	AutonetMobile                          = consts.AutonetMobile
	Avago                                  = consts.Avago
	AvmBerlin                              = consts.AvmBerlin
	AAndDEngineering                       = consts.AAndDEngineering
	AAndRCambridge                         = consts.AAndRCambridge
	Bandspeed                              = consts.Bandspeed
	BandXiInternational                    = consts.BandXiInternational
	BdeTechnology                          = consts.BdeTechnology
	BeatsElectronics                       = consts.BeatsElectronics
	BeautifulEnterprise                    = consts.BeautifulEnterprise
	Bekey                                  = consts.Bekey
	BelkinInternational                    = consts.BelkinInternational
	Binauric                               = consts.Binauric
	Biosentronics                          = consts.Biosentronics
	Bluegiga                               = consts.Bluegiga
	Blueradios                             = consts.Blueradios
	BluetoothSig                           = consts.BluetoothSig
	BluetrekTechnologies                   = consts.BluetrekTechnologies
	Bose                                   = consts.Bose
	Briartek                               = consts.Briartek
	Broadcom                               = consts.Broadcom
	CaenRfid                               = consts.CaenRfid
	CambridgeSiliconRadio                  = consts.CambridgeSiliconRadio
	Catc                                   = consts.Catc
	Cinetix                                = consts.Cinetix
	ClarinoxTechnologies                   = consts.ClarinoxTechnologies
	Colorfy                                = consts.Colorfy
	Commil                                 = consts.Commil
	ConexantSystems                        = consts.ConexantSystems
	Connectblue                            = consts.Connectblue
	ContinentalAutomotive                  = consts.ContinentalAutomotive
	ConwiseTechnology                      = consts.ConwiseTechnology
	CreativeTechnology                     = consts.CreativeTechnology
	CTechnologies                          = consts.CTechnologies
	Danlers                                = consts.Danlers
	DelormePublishingCompany               = consts.DelormePublishingCompany
	Dexcom                                 = consts.Dexcom
	DialogSemiconductor                    = consts.DialogSemiconductor
	Digianswer                             = consts.Digianswer
	Eclipse                                = consts.Eclipse
	Ecotest                                = consts.Ecotest
	ElgatoSystems                          = consts.ElgatoSystems
	EmMicroelectronicMarin                 = consts.EmMicroelectronicMarin
	EquinoxAg                              = consts.EquinoxAg
	EricssonTechnology                     = consts.EricssonTechnology
	Evluma                                 = consts.Evluma
	Free2move                              = consts.Free2move
	FunaiElectric                          = consts.FunaiElectric
	GarminInternational                    = consts.GarminInternational
	GctSemiconductor                       = consts.GctSemiconductor
	Gelo                                   = consts.Gelo
	Geneq                                  = consts.Geneq
	GeneralMotors                          = consts.GeneralMotors
	Gennum                                 = consts.Gennum
	Geoforce                               = consts.Geoforce
	GibsonGuitars                          = consts.GibsonGuitars
	GnNetcom                               = consts.GnNetcom
	GnResound                              = consts.GnResound
	Google                                 = consts.Google
	GreenThrottleGames                     = consts.GreenThrottleGames
	GroupSense                             = consts.GroupSense
	HanlynnTechnologies                    = consts.HanlynnTechnologies
	HarmanInternational                    = consts.HarmanInternational
	HewlettPackard                         = consts.HewlettPackard
	Hitachi                                = consts.Hitachi
	Hosiden                                = consts.Hosiden
	Ibm                                    = consts.Ibm
	InfineonTechnologies                   = consts.InfineonTechnologies
	IngenieurSystemgruppeZahn              = consts.IngenieurSystemgruppeZahn
	IntegratedSiliconSolution              = consts.IntegratedSiliconSolution
	IntegratedSystemSolution               = consts.IntegratedSystemSolution
	Intel                                  = consts.Intel
	Inventel                               = consts.Inventel
	Ipextreme                              = consts.Ipextreme
	ITechDynamicGlobalDistribution         = consts.ITechDynamicGlobalDistribution
	Jawbone                                = consts.Jawbone
	JiangsuToppowerAutomotiveElectronics   = consts.JiangsuToppowerAutomotiveElectronics
	JohnsonControls                        = consts.JohnsonControls
	JAndM                                  = consts.JAndM
	Kawantech                              = consts.Kawantech
	KcTechnology                           = consts.KcTechnology
	KensingtonComputerProductsGroup        = consts.KensingtonComputerProductsGroup
	LairdTechnologies                      = consts.LairdTechnologies
	Lesswire                               = consts.Lesswire
	LgElectronics                          = consts.LgElectronics
	Linak                                  = consts.Linak
	Lucent                                 = consts.Lucent
	LudusHelsinki                          = consts.LudusHelsinki
	Macronix                               = consts.Macronix
	MagnetiMarelli                         = consts.MagnetiMarelli
	Mansella                               = consts.Mansella
	Marvell                                = consts.Marvell
	MatsushitaElectric                     = consts.MatsushitaElectric
	Mc10                                   = consts.Mc10
	Mediatek                               = consts.Mediatek
	MesoInternational                      = consts.MesoInternational
	MetaWatch                              = consts.MetaWatch
	MewtelTechnology                       = consts.MewtelTechnology
	Micommand                              = consts.Micommand
	MicrochipTechnology                    = consts.MicrochipTechnology
	Microsoft                              = consts.Microsoft
	Mindtree                               = consts.Mindtree
	MisfitWearables                        = consts.MisfitWearables
	MitelSemiconductor                     = consts.MitelSemiconductor
	MitsubishiElectric                     = consts.MitsubishiElectric
	MobilianCorporation                    = consts.MobilianCorporation
	Monster                                = consts.Monster
	Motorola                               = consts.Motorola
	MstarSemiconductor                     = consts.MstarSemiconductor
	Muzik                                  = consts.Muzik
	Nec                                    = consts.Nec
	NecLighting                            = consts.NecLighting
	Newlogic                               = consts.Newlogic
	Nike                                   = consts.Nike
	NineSolutions                          = consts.NineSolutions
	NokiaMobilePhones                      = consts.NokiaMobilePhones
	NordicSemiconductor                    = consts.NordicSemiconductor
	NorwoodSystems                         = consts.NorwoodSystems
	OdmTechnology                          = consts.OdmTechnology
	Omegawave                              = consts.Omegawave
	OnsetComputer                          = consts.OnsetComputer
	OpenInterface                          = consts.OpenInterface
	OtlDynamics                            = consts.OtlDynamics
	PandaOcean                             = consts.PandaOcean
	Parrot                                 = consts.Parrot
	ParthusTechnologies                    = consts.ParthusTechnologies
	PassifSemiconductor                    = consts.PassifSemiconductor
	PeterSystemtechnik                     = consts.PeterSystemtechnik
	PhilipsSemiconductors                  = consts.PhilipsSemiconductors
	Plantronics                            = consts.Plantronics
	PolarElectro                           = consts.PolarElectro
	PolarElectroEurope                     = consts.PolarElectroEurope
	ProcterAndGamble                       = consts.ProcterAndGamble
	Qualcomm                               = consts.Qualcomm
	QualcommConnectedExperiences           = consts.QualcommConnectedExperiences
	QualcommInnovationCenter               = consts.QualcommInnovationCenter
	QualcommLabs                           = consts.QualcommLabs
	QualcommTechnologies                   = consts.QualcommTechnologies
	Quintic                                = consts.Quintic
	Quuppa                                 = consts.Quuppa
	RalinkTechnology                       = consts.RalinkTechnology
	RdaMicroelectronics                    = consts.RdaMicroelectronics
	RealtekSemiconductor                   = consts.RealtekSemiconductor
	RedM                                   = consts.RedM
	RenesasTechnology                      = consts.RenesasTechnology
	ResearchInMotion                       = consts.ResearchInMotion
	RfMicroDevices                         = consts.RfMicroDevices
	Rivierawaves                           = consts.Rivierawaves
	RohdeAndSchwarz                        = consts.RohdeAndSchwarz
	RtxTelecom                             = consts.RtxTelecom
	SamsungElectronics                     = consts.SamsungElectronics
	SarisCyclingGroup                      = consts.SarisCyclingGroup
	SeersTechnology                        = consts.SeersTechnology
	SeikoEpson                             = consts.SeikoEpson
	Selfly                                 = consts.Selfly
	Semilink                               = consts.Semilink
	SennheiserCommunications               = consts.SennheiserCommunications
	ShanghaiSuperSmartElectronics          = consts.ShanghaiSuperSmartElectronics
	ShenzhenExcelsecuDataTechnology        = consts.ShenzhenExcelsecuDataTechnology
	SigniaTechnologies                     = consts.SigniaTechnologies
	SiliconWave                            = consts.SiliconWave
	SirfTechnology                         = consts.SirfTechnology
	SocketMobile                           = consts.SocketMobile
	SonyEricsson                           = consts.SonyEricsson
	SoundId                                = consts.SoundId
	SportsTrackingTechnologies             = consts.SportsTrackingTechnologies
	SrMedizinelektronik                    = consts.SrMedizinelektronik
	StaccatoCommunications                 = consts.StaccatoCommunications
	StalmartTechnology                     = consts.StalmartTechnology
	StarkeyLaboratories                    = consts.StarkeyLaboratories
	StollmanEPlusV                         = consts.StollmanEPlusV
	StonestreetOne                         = consts.StonestreetOne
	StMicroelectronics                     = consts.StMicroelectronics
	SummitDataCommunications               = consts.SummitDataCommunications
	Suunto                                 = consts.Suunto
	SwirlNetworks                          = consts.SwirlNetworks
	SymbolTechnologies                     = consts.SymbolTechnologies
	Synopsys                               = consts.Synopsys
	SystemsAndChips                        = consts.SystemsAndChips
	SPowerElectronics                      = consts.SPowerElectronics
	TaixingbangTechnology                  = consts.TaixingbangTechnology
	Tenovis                                = consts.Tenovis
	Terax                                  = consts.Terax
	TexasInstruments                       = consts.TexasInstruments
	Thinkoptics                            = consts.Thinkoptics
	Threecom                               = consts.Threecom
	ThreeDijoy                             = consts.ThreeDijoy
	ThreeDsp                               = consts.ThreeDsp
	TimekeepingSystems                     = consts.TimekeepingSystems
	TimexGroupUsa                          = consts.TimexGroupUsa
	TopcornPositioningSystems              = consts.TopcornPositioningSystems
	Toshiba                                = consts.Toshiba
	Transilica                             = consts.Transilica
	Trelab                                 = consts.Trelab
	Ttpcom                                 = consts.Ttpcom
	Txtr                                   = consts.Txtr
	TzeroTechnologies                      = consts.TzeroTechnologies
	UniversalElectronics                   = consts.UniversalElectronics
	Vertu                                  = consts.Vertu
	Visteon                                = consts.Visteon
	Vizio                                  = consts.Vizio
	VoyetraTurtleBeach                     = consts.VoyetraTurtleBeach
	WaveplusTechnology                     = consts.WaveplusTechnology
	Wicentric                              = consts.Wicentric
	Widcomm                                = consts.Widcomm
	WuxiVimicro                            = consts.WuxiVimicro
	Zeevo                                  = consts.Zeevo
	Zer01Tv                                = consts.Zer01Tv
	Zomm                                   = consts.Zomm
	ZscanSoftware                          = consts.ZscanSoftware
	AtCmdTypeAction                        = consts.AtCmdTypeAction
	AtCmdTypeBasic                         = consts.AtCmdTypeBasic
	AtCmdTypeRead                          = consts.AtCmdTypeRead
	AtCmdTypeSet                           = consts.AtCmdTypeSet
	AtCmdTypeTest                          = consts.AtCmdTypeTest
	StateAudioConnected                    = consts.StateAudioConnected
	StateAudioConnecting                   = consts.StateAudioConnecting
	StateAudioDisconnected                 = consts.StateAudioDisconnected
	ConnectionPriorityBalanced             = consts.ConnectionPriorityBalanced
	ConnectionPriorityDck                  = consts.ConnectionPriorityDck
	ConnectionPriorityHigh                 = consts.ConnectionPriorityHigh
	ConnectionPriorityLowPower             = consts.ConnectionPriorityLowPower
	GattConnectionCongested                = consts.GattConnectionCongested
	GattConnectionTimeout                  = consts.GattConnectionTimeout
	GattFailure                            = consts.GattFailure
	GattInsufficientAuthentication         = consts.GattInsufficientAuthentication
	GattInsufficientAuthorization          = consts.GattInsufficientAuthorization
	GattInsufficientEncryption             = consts.GattInsufficientEncryption
	GattInvalidAttributeLength             = consts.GattInvalidAttributeLength
	GattInvalidOffset                      = consts.GattInvalidOffset
	GattReadNotPermitted                   = consts.GattReadNotPermitted
	GattRequestNotSupported                = consts.GattRequestNotSupported
	GattSuccess                            = consts.GattSuccess
	GattWriteNotPermitted                  = consts.GattWriteNotPermitted
	TypeL2cap                              = consts.TypeL2cap
	TypeLe                                 = consts.TypeLe
	TypeRfcomm                             = consts.TypeRfcomm
	TypeSco                                = consts.TypeSco
)
View Source
const (
	ExtraCodecStatus                            = consts.ExtraCodecStatus
	ActionConnectionStateChanged                = consts.ActionConnectionStateChanged
	ActionPlayingStateChanged                   = consts.ActionPlayingStateChanged
	ActionAclConnected                          = consts.ActionAclConnected
	ActionAclDisconnected                       = consts.ActionAclDisconnected
	ActionAclDisconnectRequested                = consts.ActionAclDisconnectRequested
	ActionAliasChanged                          = consts.ActionAliasChanged
	ActionBondStateChanged                      = consts.ActionBondStateChanged
	ActionClassChanged                          = consts.ActionClassChanged
	ActionEncryptionChange                      = consts.ActionEncryptionChange
	ActionFound                                 = consts.ActionFound
	ActionKeyMissing                            = consts.ActionKeyMissing
	ActionNameChanged                           = consts.ActionNameChanged
	ActionPairingRequest                        = consts.ActionPairingRequest
	ActionUuid                                  = consts.ActionUuid
	ExtraBondState                              = consts.ExtraBondState
	ExtraClass                                  = consts.ExtraClass
	ExtraDevice                                 = consts.ExtraDevice
	ExtraEncryptionAlgorithm                    = consts.ExtraEncryptionAlgorithm
	ExtraEncryptionEnabled                      = consts.ExtraEncryptionEnabled
	ExtraEncryptionStatus                       = consts.ExtraEncryptionStatus
	ExtraIsCoordinatedSetMember                 = consts.ExtraIsCoordinatedSetMember
	ExtraKeySize                                = consts.ExtraKeySize
	ExtraName                                   = consts.ExtraName
	ExtraPairingKey                             = consts.ExtraPairingKey
	ExtraPairingVariant                         = consts.ExtraPairingVariant
	ExtraPreviousBondState                      = consts.ExtraPreviousBondState
	ExtraRssi                                   = consts.ExtraRssi
	ExtraTransport                              = consts.ExtraTransport
	ExtraUuid                                   = consts.ExtraUuid
	ActionDiscoveryFinished                     = consts.ActionDiscoveryFinished
	ActionDiscoveryStarted                      = consts.ActionDiscoveryStarted
	ActionLocalNameChanged                      = consts.ActionLocalNameChanged
	ActionRequestDiscoverable                   = consts.ActionRequestDiscoverable
	ActionRequestEnable                         = consts.ActionRequestEnable
	ActionScanModeChanged                       = consts.ActionScanModeChanged
	ActionStateChanged                          = consts.ActionStateChanged
	ExtraConnectionState                        = consts.ExtraConnectionState
	ExtraDiscoverableDuration                   = consts.ExtraDiscoverableDuration
	ExtraLocalName                              = consts.ExtraLocalName
	ExtraPreviousConnectionState                = consts.ExtraPreviousConnectionState
	ExtraPreviousScanMode                       = consts.ExtraPreviousScanMode
	ExtraPreviousState                          = consts.ExtraPreviousState
	ExtraScanMode                               = consts.ExtraScanMode
	ExtraState                                  = consts.ExtraState
	ActionLeAudioConnectionStateChanged         = consts.ActionLeAudioConnectionStateChanged
	ActionCsisConnectionStateChanged            = consts.ActionCsisConnectionStateChanged
	ExtraLeAudioCodecStatus                     = consts.ExtraLeAudioCodecStatus
	ActionAudioStateChanged                     = consts.ActionAudioStateChanged
	ActionVendorSpecificHeadsetEvent            = consts.ActionVendorSpecificHeadsetEvent
	ExtraVendorSpecificHeadsetEventArgs         = consts.ExtraVendorSpecificHeadsetEventArgs
	ExtraVendorSpecificHeadsetEventCmd          = consts.ExtraVendorSpecificHeadsetEventCmd
	ExtraVendorSpecificHeadsetEventCmdType      = consts.ExtraVendorSpecificHeadsetEventCmdType
	VendorResultCodeCommandAndroid              = consts.VendorResultCodeCommandAndroid
	VendorSpecificHeadsetEventCompanyIdCategory = consts.VendorSpecificHeadsetEventCompanyIdCategory
)
View Source
const (
	CodecIdAac    = consts.CodecIdAac
	CodecIdAptx   = consts.CodecIdAptx
	CodecIdAptxHd = consts.CodecIdAptxHd
	CodecIdLdac   = consts.CodecIdLdac
	CodecIdOpus   = consts.CodecIdOpus
	CodecIdSbc    = consts.CodecIdSbc
)

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type A2dp added in v0.0.7

type A2dp struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

A2dp wraps android.bluetooth.BluetoothA2dp.

func (*A2dp) Finalize added in v0.0.7

func (m *A2dp) Finalize() error

Finalize calls android.bluetooth.BluetoothA2dp.finalize.

func (*A2dp) GetConnectionState added in v0.0.7

func (m *A2dp) GetConnectionState(arg0 *jni.Object) (int32, error)

GetConnectionState calls android.bluetooth.BluetoothA2dp.getConnectionState.

func (*A2dp) IsA2dpPlaying added in v0.0.7

func (m *A2dp) IsA2dpPlaying(arg0 *jni.Object) (bool, error)

IsA2dpPlaying calls android.bluetooth.BluetoothA2dp.isA2dpPlaying.

type Adapter added in v0.0.4

type Adapter struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Adapter wraps android.bluetooth.BluetoothAdapter.

func NewAdapter added in v0.0.4

func NewAdapter(ctx *app.Context) (*Adapter, error)

NewAdapter obtains the BluetoothAdapter via BluetoothManager system service.

func (*Adapter) CancelDiscovery added in v0.0.4

func (m *Adapter) CancelDiscovery() (bool, error)

CancelDiscovery calls android.bluetooth.BluetoothAdapter.cancelDiscovery.

func (*Adapter) CheckBluetoothAddress added in v0.0.4

func (m *Adapter) CheckBluetoothAddress(arg0 string) (bool, error)

CheckBluetoothAddress calls android.bluetooth.BluetoothAdapter.checkBluetoothAddress.

func (*Adapter) Close added in v0.0.4

func (m *Adapter) Close()

Close releases the global reference to the underlying Java object.

func (*Adapter) CloseProfileProxy added in v0.0.4

func (m *Adapter) CloseProfileProxy(arg0 int32, arg1 *jni.Object) error

CloseProfileProxy calls android.bluetooth.BluetoothAdapter.closeProfileProxy.

func (*Adapter) Disable added in v0.0.4

func (m *Adapter) Disable() (bool, error)

Disable calls android.bluetooth.BluetoothAdapter.disable.

func (*Adapter) Enable added in v0.0.4

func (m *Adapter) Enable() (bool, error)

Enable calls android.bluetooth.BluetoothAdapter.enable.

func (*Adapter) GetAddress added in v0.0.4

func (m *Adapter) GetAddress() (string, error)

GetAddress calls android.bluetooth.BluetoothAdapter.getAddress.

func (*Adapter) GetBluetoothLeAdvertiser added in v0.0.4

func (m *Adapter) GetBluetoothLeAdvertiser() (*jni.Object, error)

GetBluetoothLeAdvertiser calls android.bluetooth.BluetoothAdapter.getBluetoothLeAdvertiser.

func (*Adapter) GetBluetoothLeScanner added in v0.0.4

func (m *Adapter) GetBluetoothLeScanner() (*jni.Object, error)

GetBluetoothLeScanner calls android.bluetooth.BluetoothAdapter.getBluetoothLeScanner.

func (*Adapter) GetDiscoverableTimeout added in v0.0.4

func (m *Adapter) GetDiscoverableTimeout() (*jni.Object, error)

GetDiscoverableTimeout calls android.bluetooth.BluetoothAdapter.getDiscoverableTimeout.

func (*Adapter) GetLeMaximumAdvertisingDataLength added in v0.0.4

func (m *Adapter) GetLeMaximumAdvertisingDataLength() (int32, error)

GetLeMaximumAdvertisingDataLength calls android.bluetooth.BluetoothAdapter.getLeMaximumAdvertisingDataLength.

func (*Adapter) GetMaxConnectedAudioDevices added in v0.0.4

func (m *Adapter) GetMaxConnectedAudioDevices() (int32, error)

GetMaxConnectedAudioDevices calls android.bluetooth.BluetoothAdapter.getMaxConnectedAudioDevices.

func (*Adapter) GetName added in v0.0.4

func (m *Adapter) GetName() (string, error)

GetName calls android.bluetooth.BluetoothAdapter.getName.

func (*Adapter) GetProfileConnectionState added in v0.0.4

func (m *Adapter) GetProfileConnectionState(arg0 int32) (int32, error)

GetProfileConnectionState calls android.bluetooth.BluetoothAdapter.getProfileConnectionState.

func (*Adapter) GetProfileProxy added in v0.0.4

func (m *Adapter) GetProfileProxy(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int32,
) (bool, error)

GetProfileProxy calls android.bluetooth.BluetoothAdapter.getProfileProxy.

func (*Adapter) GetRemoteDevice1 added in v0.0.4

func (m *Adapter) GetRemoteDevice1(arg0 *jni.Object) (*jni.Object, error)

GetRemoteDevice1 calls android.bluetooth.BluetoothAdapter.getRemoteDevice.

func (*Adapter) GetRemoteDevice1_1 added in v0.0.4

func (m *Adapter) GetRemoteDevice1_1(arg0 string) (*jni.Object, error)

GetRemoteDevice1_1 calls android.bluetooth.BluetoothAdapter.getRemoteDevice.

func (*Adapter) GetRemoteLeDevice added in v0.0.4

func (m *Adapter) GetRemoteLeDevice(arg0 string, arg1 int32) (*jni.Object, error)

GetRemoteLeDevice calls android.bluetooth.BluetoothAdapter.getRemoteLeDevice.

func (*Adapter) GetScanMode added in v0.0.4

func (m *Adapter) GetScanMode() (int32, error)

GetScanMode calls android.bluetooth.BluetoothAdapter.getScanMode.

func (*Adapter) GetState added in v0.0.4

func (m *Adapter) GetState() (int32, error)

GetState calls android.bluetooth.BluetoothAdapter.getState.

func (*Adapter) IsDiscovering added in v0.0.4

func (m *Adapter) IsDiscovering() (bool, error)

IsDiscovering calls android.bluetooth.BluetoothAdapter.isDiscovering.

func (*Adapter) IsEnabled added in v0.0.4

func (m *Adapter) IsEnabled() (bool, error)

IsEnabled calls android.bluetooth.BluetoothAdapter.isEnabled.

func (*Adapter) IsLe2MPhySupported added in v0.0.4

func (m *Adapter) IsLe2MPhySupported() (bool, error)

IsLe2MPhySupported calls android.bluetooth.BluetoothAdapter.isLe2MPhySupported.

func (*Adapter) IsLeAudioBroadcastAssistantSupported added in v0.0.4

func (m *Adapter) IsLeAudioBroadcastAssistantSupported() (int32, error)

IsLeAudioBroadcastAssistantSupported calls android.bluetooth.BluetoothAdapter.isLeAudioBroadcastAssistantSupported.

func (*Adapter) IsLeAudioBroadcastSourceSupported added in v0.0.4

func (m *Adapter) IsLeAudioBroadcastSourceSupported() (int32, error)

IsLeAudioBroadcastSourceSupported calls android.bluetooth.BluetoothAdapter.isLeAudioBroadcastSourceSupported.

func (*Adapter) IsLeAudioSupported added in v0.0.4

func (m *Adapter) IsLeAudioSupported() (int32, error)

IsLeAudioSupported calls android.bluetooth.BluetoothAdapter.isLeAudioSupported.

func (*Adapter) IsLeCodedPhySupported added in v0.0.4

func (m *Adapter) IsLeCodedPhySupported() (bool, error)

IsLeCodedPhySupported calls android.bluetooth.BluetoothAdapter.isLeCodedPhySupported.

func (*Adapter) IsLeExtendedAdvertisingSupported added in v0.0.4

func (m *Adapter) IsLeExtendedAdvertisingSupported() (bool, error)

IsLeExtendedAdvertisingSupported calls android.bluetooth.BluetoothAdapter.isLeExtendedAdvertisingSupported.

func (*Adapter) IsLePeriodicAdvertisingSupported added in v0.0.4

func (m *Adapter) IsLePeriodicAdvertisingSupported() (bool, error)

IsLePeriodicAdvertisingSupported calls android.bluetooth.BluetoothAdapter.isLePeriodicAdvertisingSupported.

func (*Adapter) IsMultipleAdvertisementSupported added in v0.0.4

func (m *Adapter) IsMultipleAdvertisementSupported() (bool, error)

IsMultipleAdvertisementSupported calls android.bluetooth.BluetoothAdapter.isMultipleAdvertisementSupported.

func (*Adapter) IsOffloadedFilteringSupported added in v0.0.4

func (m *Adapter) IsOffloadedFilteringSupported() (bool, error)

IsOffloadedFilteringSupported calls android.bluetooth.BluetoothAdapter.isOffloadedFilteringSupported.

func (*Adapter) IsOffloadedScanBatchingSupported added in v0.0.4

func (m *Adapter) IsOffloadedScanBatchingSupported() (bool, error)

IsOffloadedScanBatchingSupported calls android.bluetooth.BluetoothAdapter.isOffloadedScanBatchingSupported.

func (*Adapter) ListenUsingInsecureL2capChannel added in v0.0.4

func (m *Adapter) ListenUsingInsecureL2capChannel() (*jni.Object, error)

ListenUsingInsecureL2capChannel calls android.bluetooth.BluetoothAdapter.listenUsingInsecureL2capChannel.

func (*Adapter) ListenUsingInsecureRfcommWithServiceRecord added in v0.0.4

func (m *Adapter) ListenUsingInsecureRfcommWithServiceRecord(arg0 string, arg1 *jni.Object) (*jni.Object, error)

ListenUsingInsecureRfcommWithServiceRecord calls android.bluetooth.BluetoothAdapter.listenUsingInsecureRfcommWithServiceRecord.

func (*Adapter) ListenUsingL2capChannel added in v0.0.4

func (m *Adapter) ListenUsingL2capChannel() (*jni.Object, error)

ListenUsingL2capChannel calls android.bluetooth.BluetoothAdapter.listenUsingL2capChannel.

func (*Adapter) ListenUsingRfcommWithServiceRecord added in v0.0.4

func (m *Adapter) ListenUsingRfcommWithServiceRecord(arg0 string, arg1 *jni.Object) (*jni.Object, error)

ListenUsingRfcommWithServiceRecord calls android.bluetooth.BluetoothAdapter.listenUsingRfcommWithServiceRecord.

func (*Adapter) ListenUsingSocketSettings added in v0.0.4

func (m *Adapter) ListenUsingSocketSettings(arg0 *jni.Object) (*jni.Object, error)

ListenUsingSocketSettings calls android.bluetooth.BluetoothAdapter.listenUsingSocketSettings.

func (*Adapter) SetName added in v0.0.4

func (m *Adapter) SetName(arg0 string) (bool, error)

SetName calls android.bluetooth.BluetoothAdapter.setName.

func (*Adapter) StartDiscovery added in v0.0.4

func (m *Adapter) StartDiscovery() (bool, error)

StartDiscovery calls android.bluetooth.BluetoothAdapter.startDiscovery.

func (*Adapter) StartLeScan1 added in v0.0.4

func (m *Adapter) StartLeScan1(arg0 *jni.Object) (bool, error)

StartLeScan1 calls android.bluetooth.BluetoothAdapter.startLeScan.

func (*Adapter) StartLeScan2_1 added in v0.0.4

func (m *Adapter) StartLeScan2_1(arg0 *jni.Object, arg1 *jni.Object) (bool, error)

StartLeScan2_1 calls android.bluetooth.BluetoothAdapter.startLeScan.

func (*Adapter) StopLeScan added in v0.0.4

func (m *Adapter) StopLeScan(arg0 *jni.Object) error

StopLeScan calls android.bluetooth.BluetoothAdapter.stopLeScan.

type AdapterLeScanCallback added in v0.0.7

type AdapterLeScanCallback struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

AdapterLeScanCallback wraps android.bluetooth.BluetoothAdapter$LeScanCallback.

func (*AdapterLeScanCallback) OnLeScan added in v0.0.7

func (m *AdapterLeScanCallback) OnLeScan(
	arg0 *jni.Object,
	arg1 int32,
	arg2 *jni.Object,
) error

OnLeScan calls android.bluetooth.BluetoothAdapter$LeScanCallback.onLeScan.

type Class added in v0.0.7

type Class struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Class wraps android.bluetooth.BluetoothClass.

func (*Class) DescribeContents added in v0.0.7

func (m *Class) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothClass.describeContents.

func (*Class) DoesClassMatch added in v0.0.7

func (m *Class) DoesClassMatch(arg0 int32) (bool, error)

DoesClassMatch calls android.bluetooth.BluetoothClass.doesClassMatch.

func (*Class) Equals added in v0.0.7

func (m *Class) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.bluetooth.BluetoothClass.equals.

func (*Class) GetDeviceClass added in v0.0.7

func (m *Class) GetDeviceClass() (int32, error)

GetDeviceClass calls android.bluetooth.BluetoothClass.getDeviceClass.

func (*Class) GetMajorDeviceClass added in v0.0.7

func (m *Class) GetMajorDeviceClass() (int32, error)

GetMajorDeviceClass calls android.bluetooth.BluetoothClass.getMajorDeviceClass.

func (*Class) HasService added in v0.0.7

func (m *Class) HasService(arg0 int32) (bool, error)

HasService calls android.bluetooth.BluetoothClass.hasService.

func (*Class) HashCode added in v0.0.7

func (m *Class) HashCode() (int32, error)

HashCode calls android.bluetooth.BluetoothClass.hashCode.

func (*Class) ToString added in v0.0.7

func (m *Class) ToString() (string, error)

ToString calls android.bluetooth.BluetoothClass.toString.

func (*Class) WriteToParcel added in v0.0.7

func (m *Class) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothClass.writeToParcel.

type CodecConfig added in v0.0.7

type CodecConfig struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

CodecConfig wraps android.bluetooth.BluetoothCodecConfig.

func (*CodecConfig) DescribeContents added in v0.0.7

func (m *CodecConfig) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothCodecConfig.describeContents.

func (*CodecConfig) Equals added in v0.0.7

func (m *CodecConfig) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.bluetooth.BluetoothCodecConfig.equals.

func (*CodecConfig) GetBitsPerSample added in v0.0.7

func (m *CodecConfig) GetBitsPerSample() (int32, error)

GetBitsPerSample calls android.bluetooth.BluetoothCodecConfig.getBitsPerSample.

func (*CodecConfig) GetChannelMode added in v0.0.7

func (m *CodecConfig) GetChannelMode() (int32, error)

GetChannelMode calls android.bluetooth.BluetoothCodecConfig.getChannelMode.

func (*CodecConfig) GetCodecPriority added in v0.0.7

func (m *CodecConfig) GetCodecPriority() (int32, error)

GetCodecPriority calls android.bluetooth.BluetoothCodecConfig.getCodecPriority.

func (*CodecConfig) GetCodecSpecific1 added in v0.0.7

func (m *CodecConfig) GetCodecSpecific1() (int64, error)

GetCodecSpecific1 calls android.bluetooth.BluetoothCodecConfig.getCodecSpecific1.

func (*CodecConfig) GetCodecSpecific2 added in v0.0.7

func (m *CodecConfig) GetCodecSpecific2() (int64, error)

GetCodecSpecific2 calls android.bluetooth.BluetoothCodecConfig.getCodecSpecific2.

func (*CodecConfig) GetCodecSpecific3 added in v0.0.7

func (m *CodecConfig) GetCodecSpecific3() (int64, error)

GetCodecSpecific3 calls android.bluetooth.BluetoothCodecConfig.getCodecSpecific3.

func (*CodecConfig) GetCodecSpecific4 added in v0.0.7

func (m *CodecConfig) GetCodecSpecific4() (int64, error)

GetCodecSpecific4 calls android.bluetooth.BluetoothCodecConfig.getCodecSpecific4.

func (*CodecConfig) GetCodecType added in v0.0.7

func (m *CodecConfig) GetCodecType() (int32, error)

GetCodecType calls android.bluetooth.BluetoothCodecConfig.getCodecType.

func (*CodecConfig) GetExtendedCodecType added in v0.0.7

func (m *CodecConfig) GetExtendedCodecType() (*jni.Object, error)

GetExtendedCodecType calls android.bluetooth.BluetoothCodecConfig.getExtendedCodecType.

func (*CodecConfig) GetSampleRate added in v0.0.7

func (m *CodecConfig) GetSampleRate() (int32, error)

GetSampleRate calls android.bluetooth.BluetoothCodecConfig.getSampleRate.

func (*CodecConfig) HashCode added in v0.0.7

func (m *CodecConfig) HashCode() (int32, error)

HashCode calls android.bluetooth.BluetoothCodecConfig.hashCode.

func (*CodecConfig) IsMandatoryCodec added in v0.0.7

func (m *CodecConfig) IsMandatoryCodec() (bool, error)

IsMandatoryCodec calls android.bluetooth.BluetoothCodecConfig.isMandatoryCodec.

func (*CodecConfig) ToString added in v0.0.7

func (m *CodecConfig) ToString() (string, error)

ToString calls android.bluetooth.BluetoothCodecConfig.toString.

func (*CodecConfig) WriteToParcel added in v0.0.7

func (m *CodecConfig) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothCodecConfig.writeToParcel.

type CodecConfigBuilder added in v0.0.7

type CodecConfigBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

CodecConfigBuilder wraps android.bluetooth.BluetoothCodecConfig$Builder.

func (*CodecConfigBuilder) Build added in v0.0.7

func (m *CodecConfigBuilder) Build() (*jni.Object, error)

Build calls android.bluetooth.BluetoothCodecConfig$Builder.build.

func (*CodecConfigBuilder) SetBitsPerSample added in v0.0.7

func (m *CodecConfigBuilder) SetBitsPerSample(arg0 int32) (*jni.Object, error)

SetBitsPerSample calls android.bluetooth.BluetoothCodecConfig$Builder.setBitsPerSample.

func (*CodecConfigBuilder) SetChannelMode added in v0.0.7

func (m *CodecConfigBuilder) SetChannelMode(arg0 int32) (*jni.Object, error)

SetChannelMode calls android.bluetooth.BluetoothCodecConfig$Builder.setChannelMode.

func (*CodecConfigBuilder) SetCodecPriority added in v0.0.7

func (m *CodecConfigBuilder) SetCodecPriority(arg0 int32) (*jni.Object, error)

SetCodecPriority calls android.bluetooth.BluetoothCodecConfig$Builder.setCodecPriority.

func (*CodecConfigBuilder) SetCodecSpecific1 added in v0.0.7

func (m *CodecConfigBuilder) SetCodecSpecific1(arg0 int64) (*jni.Object, error)

SetCodecSpecific1 calls android.bluetooth.BluetoothCodecConfig$Builder.setCodecSpecific1.

func (*CodecConfigBuilder) SetCodecSpecific2 added in v0.0.7

func (m *CodecConfigBuilder) SetCodecSpecific2(arg0 int64) (*jni.Object, error)

SetCodecSpecific2 calls android.bluetooth.BluetoothCodecConfig$Builder.setCodecSpecific2.

func (*CodecConfigBuilder) SetCodecSpecific3 added in v0.0.7

func (m *CodecConfigBuilder) SetCodecSpecific3(arg0 int64) (*jni.Object, error)

SetCodecSpecific3 calls android.bluetooth.BluetoothCodecConfig$Builder.setCodecSpecific3.

func (*CodecConfigBuilder) SetCodecSpecific4 added in v0.0.7

func (m *CodecConfigBuilder) SetCodecSpecific4(arg0 int64) (*jni.Object, error)

SetCodecSpecific4 calls android.bluetooth.BluetoothCodecConfig$Builder.setCodecSpecific4.

func (*CodecConfigBuilder) SetCodecType added in v0.0.7

func (m *CodecConfigBuilder) SetCodecType(arg0 int32) (*jni.Object, error)

SetCodecType calls android.bluetooth.BluetoothCodecConfig$Builder.setCodecType.

func (*CodecConfigBuilder) SetExtendedCodecType added in v0.0.7

func (m *CodecConfigBuilder) SetExtendedCodecType(arg0 *jni.Object) (*jni.Object, error)

SetExtendedCodecType calls android.bluetooth.BluetoothCodecConfig$Builder.setExtendedCodecType.

func (*CodecConfigBuilder) SetSampleRate added in v0.0.7

func (m *CodecConfigBuilder) SetSampleRate(arg0 int32) (*jni.Object, error)

SetSampleRate calls android.bluetooth.BluetoothCodecConfig$Builder.setSampleRate.

type CodecStatus added in v0.0.7

type CodecStatus struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

CodecStatus wraps android.bluetooth.BluetoothCodecStatus.

func (*CodecStatus) DescribeContents added in v0.0.7

func (m *CodecStatus) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothCodecStatus.describeContents.

func (*CodecStatus) Equals added in v0.0.7

func (m *CodecStatus) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.bluetooth.BluetoothCodecStatus.equals.

func (*CodecStatus) GetCodecConfig added in v0.0.7

func (m *CodecStatus) GetCodecConfig() (*jni.Object, error)

GetCodecConfig calls android.bluetooth.BluetoothCodecStatus.getCodecConfig.

func (*CodecStatus) HashCode added in v0.0.7

func (m *CodecStatus) HashCode() (int32, error)

HashCode calls android.bluetooth.BluetoothCodecStatus.hashCode.

func (*CodecStatus) IsCodecConfigSelectable added in v0.0.7

func (m *CodecStatus) IsCodecConfigSelectable(arg0 *jni.Object) (bool, error)

IsCodecConfigSelectable calls android.bluetooth.BluetoothCodecStatus.isCodecConfigSelectable.

func (*CodecStatus) ToString added in v0.0.7

func (m *CodecStatus) ToString() (string, error)

ToString calls android.bluetooth.BluetoothCodecStatus.toString.

func (*CodecStatus) WriteToParcel added in v0.0.7

func (m *CodecStatus) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothCodecStatus.writeToParcel.

type CodecStatusBuilder added in v0.0.7

type CodecStatusBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

CodecStatusBuilder wraps android.bluetooth.BluetoothCodecStatus$Builder.

func (*CodecStatusBuilder) Build added in v0.0.7

func (m *CodecStatusBuilder) Build() (*jni.Object, error)

Build calls android.bluetooth.BluetoothCodecStatus$Builder.build.

func (*CodecStatusBuilder) SetCodecConfig added in v0.0.7

func (m *CodecStatusBuilder) SetCodecConfig(arg0 *jni.Object) (*jni.Object, error)

SetCodecConfig calls android.bluetooth.BluetoothCodecStatus$Builder.setCodecConfig.

type CodecType added in v0.0.7

type CodecType struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

CodecType wraps android.bluetooth.BluetoothCodecType.

func (*CodecType) DescribeContents added in v0.0.7

func (m *CodecType) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothCodecType.describeContents.

func (*CodecType) Equals added in v0.0.7

func (m *CodecType) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.bluetooth.BluetoothCodecType.equals.

func (*CodecType) GetCodecId added in v0.0.7

func (m *CodecType) GetCodecId() (int64, error)

GetCodecId calls android.bluetooth.BluetoothCodecType.getCodecId.

func (*CodecType) GetCodecName added in v0.0.7

func (m *CodecType) GetCodecName() (string, error)

GetCodecName calls android.bluetooth.BluetoothCodecType.getCodecName.

func (*CodecType) HashCode added in v0.0.7

func (m *CodecType) HashCode() (int32, error)

HashCode calls android.bluetooth.BluetoothCodecType.hashCode.

func (*CodecType) IsMandatoryCodec added in v0.0.7

func (m *CodecType) IsMandatoryCodec() (bool, error)

IsMandatoryCodec calls android.bluetooth.BluetoothCodecType.isMandatoryCodec.

func (*CodecType) ToString added in v0.0.7

func (m *CodecType) ToString() (string, error)

ToString calls android.bluetooth.BluetoothCodecType.toString.

func (*CodecType) WriteToParcel added in v0.0.7

func (m *CodecType) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothCodecType.writeToParcel.

type CsipSetCoordinator added in v0.0.7

type CsipSetCoordinator struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

CsipSetCoordinator wraps android.bluetooth.BluetoothCsipSetCoordinator.

func (*CsipSetCoordinator) Close added in v0.0.7

func (m *CsipSetCoordinator) Close() error

Close calls android.bluetooth.BluetoothCsipSetCoordinator.close.

func (*CsipSetCoordinator) GetConnectionState added in v0.0.7

func (m *CsipSetCoordinator) GetConnectionState(arg0 *jni.Object) (int32, error)

GetConnectionState calls android.bluetooth.BluetoothCsipSetCoordinator.getConnectionState.

type Device added in v0.0.4

type Device struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Device wraps android.bluetooth.BluetoothDevice.

func (*Device) ConnectGatt3 added in v0.0.4

func (m *Device) ConnectGatt3(
	arg0 *jni.Object,
	arg1 bool,
	arg2 *jni.Object,
) (*jni.Object, error)

ConnectGatt3 calls android.bluetooth.BluetoothDevice.connectGatt.

func (*Device) ConnectGatt4_1 added in v0.0.4

func (m *Device) ConnectGatt4_1(
	arg0 *jni.Object,
	arg1 bool,
	arg2 *jni.Object,
	arg3 int32,
) (*jni.Object, error)

ConnectGatt4_1 calls android.bluetooth.BluetoothDevice.connectGatt.

func (*Device) ConnectGatt5_2 added in v0.0.4

func (m *Device) ConnectGatt5_2(
	arg0 *jni.Object,
	arg1 bool,
	arg2 *jni.Object,
	arg3 int32,
	arg4 int32,
) (*jni.Object, error)

ConnectGatt5_2 calls android.bluetooth.BluetoothDevice.connectGatt.

func (*Device) CreateBond added in v0.0.4

func (m *Device) CreateBond() (bool, error)

CreateBond calls android.bluetooth.BluetoothDevice.createBond.

func (*Device) CreateInsecureL2capChannel added in v0.0.4

func (m *Device) CreateInsecureL2capChannel(arg0 int32) (*jni.Object, error)

CreateInsecureL2capChannel calls android.bluetooth.BluetoothDevice.createInsecureL2capChannel.

func (*Device) CreateInsecureRfcommSocketToServiceRecord added in v0.0.4

func (m *Device) CreateInsecureRfcommSocketToServiceRecord(arg0 *jni.Object) (*jni.Object, error)

CreateInsecureRfcommSocketToServiceRecord calls android.bluetooth.BluetoothDevice.createInsecureRfcommSocketToServiceRecord.

func (*Device) CreateL2capChannel added in v0.0.4

func (m *Device) CreateL2capChannel(arg0 int32) (*jni.Object, error)

CreateL2capChannel calls android.bluetooth.BluetoothDevice.createL2capChannel.

func (*Device) CreateRfcommSocketToServiceRecord added in v0.0.4

func (m *Device) CreateRfcommSocketToServiceRecord(arg0 *jni.Object) (*jni.Object, error)

CreateRfcommSocketToServiceRecord calls android.bluetooth.BluetoothDevice.createRfcommSocketToServiceRecord.

func (*Device) CreateUsingSocketSettings added in v0.0.4

func (m *Device) CreateUsingSocketSettings(arg0 *jni.Object) (*jni.Object, error)

CreateUsingSocketSettings calls android.bluetooth.BluetoothDevice.createUsingSocketSettings.

func (*Device) DescribeContents added in v0.0.4

func (m *Device) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothDevice.describeContents.

func (*Device) Equals added in v0.0.4

func (m *Device) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.bluetooth.BluetoothDevice.equals.

func (*Device) FetchUuidsWithSdp added in v0.0.4

func (m *Device) FetchUuidsWithSdp() (bool, error)

FetchUuidsWithSdp calls android.bluetooth.BluetoothDevice.fetchUuidsWithSdp.

func (*Device) GetAddress added in v0.0.4

func (m *Device) GetAddress() (string, error)

GetAddress calls android.bluetooth.BluetoothDevice.getAddress.

func (*Device) GetAddressType added in v0.0.4

func (m *Device) GetAddressType() (int32, error)

GetAddressType calls android.bluetooth.BluetoothDevice.getAddressType.

func (*Device) GetAlias added in v0.0.4

func (m *Device) GetAlias() (string, error)

GetAlias calls android.bluetooth.BluetoothDevice.getAlias.

func (*Device) GetBluetoothClass added in v0.0.4

func (m *Device) GetBluetoothClass() (*jni.Object, error)

GetBluetoothClass calls android.bluetooth.BluetoothDevice.getBluetoothClass.

func (*Device) GetBondState added in v0.0.4

func (m *Device) GetBondState() (int32, error)

GetBondState calls android.bluetooth.BluetoothDevice.getBondState.

func (*Device) GetIdentityAddressWithType added in v0.0.4

func (m *Device) GetIdentityAddressWithType() (*jni.Object, error)

GetIdentityAddressWithType calls android.bluetooth.BluetoothDevice.getIdentityAddressWithType.

func (*Device) GetName added in v0.0.4

func (m *Device) GetName() (string, error)

GetName calls android.bluetooth.BluetoothDevice.getName.

func (*Device) GetType added in v0.0.4

func (m *Device) GetType() (int32, error)

GetType calls android.bluetooth.BluetoothDevice.getType.

func (*Device) GetUuids added in v0.0.4

func (m *Device) GetUuids() (*jni.Object, error)

GetUuids calls android.bluetooth.BluetoothDevice.getUuids.

func (*Device) HashCode added in v0.0.4

func (m *Device) HashCode() (int32, error)

HashCode calls android.bluetooth.BluetoothDevice.hashCode.

func (*Device) SetAlias added in v0.0.4

func (m *Device) SetAlias(arg0 string) (int32, error)

SetAlias calls android.bluetooth.BluetoothDevice.setAlias.

func (*Device) SetPairingConfirmation added in v0.0.4

func (m *Device) SetPairingConfirmation(arg0 bool) (bool, error)

SetPairingConfirmation calls android.bluetooth.BluetoothDevice.setPairingConfirmation.

func (*Device) SetPin added in v0.0.4

func (m *Device) SetPin(arg0 *jni.Object) (bool, error)

SetPin calls android.bluetooth.BluetoothDevice.setPin.

func (*Device) ToString added in v0.0.4

func (m *Device) ToString() (string, error)

ToString calls android.bluetooth.BluetoothDevice.toString.

func (*Device) WriteToParcel added in v0.0.4

func (m *Device) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothDevice.writeToParcel.

type DeviceBluetoothAddress added in v0.0.7

type DeviceBluetoothAddress struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DeviceBluetoothAddress wraps android.bluetooth.BluetoothDevice$BluetoothAddress.

func (*DeviceBluetoothAddress) DescribeContents added in v0.0.7

func (m *DeviceBluetoothAddress) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothDevice$BluetoothAddress.describeContents.

func (*DeviceBluetoothAddress) GetAddress added in v0.0.7

func (m *DeviceBluetoothAddress) GetAddress() (string, error)

GetAddress calls android.bluetooth.BluetoothDevice$BluetoothAddress.getAddress.

func (*DeviceBluetoothAddress) GetAddressType added in v0.0.7

func (m *DeviceBluetoothAddress) GetAddressType() (int32, error)

GetAddressType calls android.bluetooth.BluetoothDevice$BluetoothAddress.getAddressType.

func (*DeviceBluetoothAddress) WriteToParcel added in v0.0.7

func (m *DeviceBluetoothAddress) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothDevice$BluetoothAddress.writeToParcel.

type Gatt added in v0.0.4

type Gatt struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Gatt wraps android.bluetooth.BluetoothGatt.

func (*Gatt) AbortReliableWrite0 added in v0.0.4

func (m *Gatt) AbortReliableWrite0() error

AbortReliableWrite0 calls android.bluetooth.BluetoothGatt.abortReliableWrite.

func (*Gatt) AbortReliableWrite1_1 added in v0.0.4

func (m *Gatt) AbortReliableWrite1_1(arg0 *jni.Object) error

AbortReliableWrite1_1 calls android.bluetooth.BluetoothGatt.abortReliableWrite.

func (*Gatt) BeginReliableWrite added in v0.0.4

func (m *Gatt) BeginReliableWrite() (bool, error)

BeginReliableWrite calls android.bluetooth.BluetoothGatt.beginReliableWrite.

func (*Gatt) Close added in v0.0.4

func (m *Gatt) Close() error

Close calls android.bluetooth.BluetoothGatt.close.

func (*Gatt) Connect added in v0.0.4

func (m *Gatt) Connect() (bool, error)

Connect calls android.bluetooth.BluetoothGatt.connect.

func (*Gatt) Disconnect added in v0.0.4

func (m *Gatt) Disconnect() error

Disconnect calls android.bluetooth.BluetoothGatt.disconnect.

func (*Gatt) DiscoverServices added in v0.0.4

func (m *Gatt) DiscoverServices() (bool, error)

DiscoverServices calls android.bluetooth.BluetoothGatt.discoverServices.

func (*Gatt) ExecuteReliableWrite added in v0.0.4

func (m *Gatt) ExecuteReliableWrite() (bool, error)

ExecuteReliableWrite calls android.bluetooth.BluetoothGatt.executeReliableWrite.

func (*Gatt) GetConnectionState added in v0.0.4

func (m *Gatt) GetConnectionState(arg0 *jni.Object) (int32, error)

GetConnectionState calls android.bluetooth.BluetoothGatt.getConnectionState.

func (*Gatt) GetDevice added in v0.0.4

func (m *Gatt) GetDevice() (*jni.Object, error)

GetDevice calls android.bluetooth.BluetoothGatt.getDevice.

func (*Gatt) GetService added in v0.0.4

func (m *Gatt) GetService(arg0 *jni.Object) (*jni.Object, error)

GetService calls android.bluetooth.BluetoothGatt.getService.

func (*Gatt) ReadCharacteristic added in v0.0.4

func (m *Gatt) ReadCharacteristic(arg0 *jni.Object) (bool, error)

ReadCharacteristic calls android.bluetooth.BluetoothGatt.readCharacteristic.

func (*Gatt) ReadDescriptor added in v0.0.4

func (m *Gatt) ReadDescriptor(arg0 *jni.Object) (bool, error)

ReadDescriptor calls android.bluetooth.BluetoothGatt.readDescriptor.

func (*Gatt) ReadPhy added in v0.0.4

func (m *Gatt) ReadPhy() error

ReadPhy calls android.bluetooth.BluetoothGatt.readPhy.

func (*Gatt) ReadRemoteRssi added in v0.0.4

func (m *Gatt) ReadRemoteRssi() (bool, error)

ReadRemoteRssi calls android.bluetooth.BluetoothGatt.readRemoteRssi.

func (*Gatt) RequestConnectionPriority added in v0.0.4

func (m *Gatt) RequestConnectionPriority(arg0 int32) (bool, error)

RequestConnectionPriority calls android.bluetooth.BluetoothGatt.requestConnectionPriority.

func (*Gatt) RequestMtu added in v0.0.4

func (m *Gatt) RequestMtu(arg0 int32) (bool, error)

RequestMtu calls android.bluetooth.BluetoothGatt.requestMtu.

func (*Gatt) SetCharacteristicNotification added in v0.0.4

func (m *Gatt) SetCharacteristicNotification(arg0 *jni.Object, arg1 bool) (bool, error)

SetCharacteristicNotification calls android.bluetooth.BluetoothGatt.setCharacteristicNotification.

func (*Gatt) SetPreferredPhy added in v0.0.4

func (m *Gatt) SetPreferredPhy(
	arg0 int32,
	arg1 int32,
	arg2 int32,
) error

SetPreferredPhy calls android.bluetooth.BluetoothGatt.setPreferredPhy.

func (*Gatt) WriteCharacteristic1 added in v0.0.4

func (m *Gatt) WriteCharacteristic1(arg0 *jni.Object) (bool, error)

WriteCharacteristic1 calls android.bluetooth.BluetoothGatt.writeCharacteristic.

func (*Gatt) WriteCharacteristic3_1 added in v0.0.4

func (m *Gatt) WriteCharacteristic3_1(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int32,
) (int32, error)

WriteCharacteristic3_1 calls android.bluetooth.BluetoothGatt.writeCharacteristic.

func (*Gatt) WriteDescriptor1 added in v0.0.4

func (m *Gatt) WriteDescriptor1(arg0 *jni.Object) (bool, error)

WriteDescriptor1 calls android.bluetooth.BluetoothGatt.writeDescriptor.

func (*Gatt) WriteDescriptor2_1 added in v0.0.4

func (m *Gatt) WriteDescriptor2_1(arg0 *jni.Object, arg1 *jni.Object) (int32, error)

WriteDescriptor2_1 calls android.bluetooth.BluetoothGatt.writeDescriptor.

type GattCallback added in v0.0.7

type GattCallback struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

GattCallback wraps android.bluetooth.BluetoothGattCallback.

func (*GattCallback) OnCharacteristicChanged2 added in v0.0.7

func (m *GattCallback) OnCharacteristicChanged2(arg0 *jni.Object, arg1 *jni.Object) error

OnCharacteristicChanged2 calls android.bluetooth.BluetoothGattCallback.onCharacteristicChanged.

func (*GattCallback) OnCharacteristicChanged3_1 added in v0.0.7

func (m *GattCallback) OnCharacteristicChanged3_1(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
) error

OnCharacteristicChanged3_1 calls android.bluetooth.BluetoothGattCallback.onCharacteristicChanged.

func (*GattCallback) OnCharacteristicRead3_1 added in v0.0.7

func (m *GattCallback) OnCharacteristicRead3_1(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int32,
) error

OnCharacteristicRead3_1 calls android.bluetooth.BluetoothGattCallback.onCharacteristicRead.

func (*GattCallback) OnCharacteristicRead4 added in v0.0.7

func (m *GattCallback) OnCharacteristicRead4(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
	arg3 int32,
) error

OnCharacteristicRead4 calls android.bluetooth.BluetoothGattCallback.onCharacteristicRead.

func (*GattCallback) OnCharacteristicWrite added in v0.0.7

func (m *GattCallback) OnCharacteristicWrite(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int32,
) error

OnCharacteristicWrite calls android.bluetooth.BluetoothGattCallback.onCharacteristicWrite.

func (*GattCallback) OnConnectionStateChange added in v0.0.7

func (m *GattCallback) OnConnectionStateChange(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
) error

OnConnectionStateChange calls android.bluetooth.BluetoothGattCallback.onConnectionStateChange.

func (*GattCallback) OnDescriptorRead3 added in v0.0.7

func (m *GattCallback) OnDescriptorRead3(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int32,
) error

OnDescriptorRead3 calls android.bluetooth.BluetoothGattCallback.onDescriptorRead.

func (*GattCallback) OnDescriptorRead4_1 added in v0.0.7

func (m *GattCallback) OnDescriptorRead4_1(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int32,
	arg3 *jni.Object,
) error

OnDescriptorRead4_1 calls android.bluetooth.BluetoothGattCallback.onDescriptorRead.

func (*GattCallback) OnDescriptorWrite added in v0.0.7

func (m *GattCallback) OnDescriptorWrite(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int32,
) error

OnDescriptorWrite calls android.bluetooth.BluetoothGattCallback.onDescriptorWrite.

func (*GattCallback) OnMtuChanged added in v0.0.7

func (m *GattCallback) OnMtuChanged(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
) error

OnMtuChanged calls android.bluetooth.BluetoothGattCallback.onMtuChanged.

func (*GattCallback) OnPhyRead added in v0.0.7

func (m *GattCallback) OnPhyRead(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) error

OnPhyRead calls android.bluetooth.BluetoothGattCallback.onPhyRead.

func (*GattCallback) OnPhyUpdate added in v0.0.7

func (m *GattCallback) OnPhyUpdate(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) error

OnPhyUpdate calls android.bluetooth.BluetoothGattCallback.onPhyUpdate.

func (*GattCallback) OnReadRemoteRssi added in v0.0.7

func (m *GattCallback) OnReadRemoteRssi(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
) error

OnReadRemoteRssi calls android.bluetooth.BluetoothGattCallback.onReadRemoteRssi.

func (*GattCallback) OnReliableWriteCompleted added in v0.0.7

func (m *GattCallback) OnReliableWriteCompleted(arg0 *jni.Object, arg1 int32) error

OnReliableWriteCompleted calls android.bluetooth.BluetoothGattCallback.onReliableWriteCompleted.

func (*GattCallback) OnServiceChanged added in v0.0.7

func (m *GattCallback) OnServiceChanged(arg0 *jni.Object) error

OnServiceChanged calls android.bluetooth.BluetoothGattCallback.onServiceChanged.

func (*GattCallback) OnServicesDiscovered added in v0.0.7

func (m *GattCallback) OnServicesDiscovered(arg0 *jni.Object, arg1 int32) error

OnServicesDiscovered calls android.bluetooth.BluetoothGattCallback.onServicesDiscovered.

type GattCharacteristic added in v0.0.4

type GattCharacteristic struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

GattCharacteristic wraps android.bluetooth.BluetoothGattCharacteristic.

func NewGattCharacteristic added in v0.0.7

func NewGattCharacteristic(vm *jni.VM, arg0 *jni.Object, arg1 int32, arg2 int32) (*GattCharacteristic, error)

NewGattCharacteristic creates a new android.bluetooth.BluetoothGattCharacteristic instance.

func (*GattCharacteristic) AddDescriptor added in v0.0.4

func (m *GattCharacteristic) AddDescriptor(arg0 *jni.Object) (bool, error)

AddDescriptor calls android.bluetooth.BluetoothGattCharacteristic.addDescriptor.

func (*GattCharacteristic) DescribeContents added in v0.0.4

func (m *GattCharacteristic) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothGattCharacteristic.describeContents.

func (*GattCharacteristic) GetDescriptor added in v0.0.4

func (m *GattCharacteristic) GetDescriptor(arg0 *jni.Object) (*jni.Object, error)

GetDescriptor calls android.bluetooth.BluetoothGattCharacteristic.getDescriptor.

func (*GattCharacteristic) GetFloatValue added in v0.0.4

func (m *GattCharacteristic) GetFloatValue(arg0 int32, arg1 int32) (*jni.Object, error)

GetFloatValue calls android.bluetooth.BluetoothGattCharacteristic.getFloatValue.

func (*GattCharacteristic) GetInstanceId added in v0.0.4

func (m *GattCharacteristic) GetInstanceId() (int32, error)

GetInstanceId calls android.bluetooth.BluetoothGattCharacteristic.getInstanceId.

func (*GattCharacteristic) GetIntValue added in v0.0.4

func (m *GattCharacteristic) GetIntValue(arg0 int32, arg1 int32) (*jni.Object, error)

GetIntValue calls android.bluetooth.BluetoothGattCharacteristic.getIntValue.

func (*GattCharacteristic) GetPermissions added in v0.0.4

func (m *GattCharacteristic) GetPermissions() (int32, error)

GetPermissions calls android.bluetooth.BluetoothGattCharacteristic.getPermissions.

func (*GattCharacteristic) GetProperties added in v0.0.4

func (m *GattCharacteristic) GetProperties() (int32, error)

GetProperties calls android.bluetooth.BluetoothGattCharacteristic.getProperties.

func (*GattCharacteristic) GetService added in v0.0.4

func (m *GattCharacteristic) GetService() (*jni.Object, error)

GetService calls android.bluetooth.BluetoothGattCharacteristic.getService.

func (*GattCharacteristic) GetStringValue added in v0.0.4

func (m *GattCharacteristic) GetStringValue(arg0 int32) (string, error)

GetStringValue calls android.bluetooth.BluetoothGattCharacteristic.getStringValue.

func (*GattCharacteristic) GetUuid added in v0.0.4

func (m *GattCharacteristic) GetUuid() (*jni.Object, error)

GetUuid calls android.bluetooth.BluetoothGattCharacteristic.getUuid.

func (*GattCharacteristic) GetValue added in v0.0.4

func (m *GattCharacteristic) GetValue() (*jni.Object, error)

GetValue calls android.bluetooth.BluetoothGattCharacteristic.getValue.

func (*GattCharacteristic) GetWriteType added in v0.0.4

func (m *GattCharacteristic) GetWriteType() (int32, error)

GetWriteType calls android.bluetooth.BluetoothGattCharacteristic.getWriteType.

func (*GattCharacteristic) SetValue1 added in v0.0.4

func (m *GattCharacteristic) SetValue1(arg0 *jni.Object) (bool, error)

SetValue1 calls android.bluetooth.BluetoothGattCharacteristic.setValue.

func (*GattCharacteristic) SetValue1_3 added in v0.0.4

func (m *GattCharacteristic) SetValue1_3(arg0 string) (bool, error)

SetValue1_3 calls android.bluetooth.BluetoothGattCharacteristic.setValue.

func (*GattCharacteristic) SetValue3_1 added in v0.0.4

func (m *GattCharacteristic) SetValue3_1(
	arg0 int32,
	arg1 int32,
	arg2 int32,
) (bool, error)

SetValue3_1 calls android.bluetooth.BluetoothGattCharacteristic.setValue.

func (*GattCharacteristic) SetValue4_2 added in v0.0.4

func (m *GattCharacteristic) SetValue4_2(
	arg0 int32,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) (bool, error)

SetValue4_2 calls android.bluetooth.BluetoothGattCharacteristic.setValue.

func (*GattCharacteristic) SetWriteType added in v0.0.4

func (m *GattCharacteristic) SetWriteType(arg0 int32) error

SetWriteType calls android.bluetooth.BluetoothGattCharacteristic.setWriteType.

func (*GattCharacteristic) WriteToParcel added in v0.0.4

func (m *GattCharacteristic) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothGattCharacteristic.writeToParcel.

type GattDescriptor added in v0.0.4

type GattDescriptor struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

GattDescriptor wraps android.bluetooth.BluetoothGattDescriptor.

func NewGattDescriptor added in v0.0.7

func NewGattDescriptor(vm *jni.VM, arg0 *jni.Object, arg1 int32) (*GattDescriptor, error)

NewGattDescriptor creates a new android.bluetooth.BluetoothGattDescriptor instance.

func (*GattDescriptor) DescribeContents added in v0.0.4

func (m *GattDescriptor) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothGattDescriptor.describeContents.

func (*GattDescriptor) GetCharacteristic added in v0.0.4

func (m *GattDescriptor) GetCharacteristic() (*jni.Object, error)

GetCharacteristic calls android.bluetooth.BluetoothGattDescriptor.getCharacteristic.

func (*GattDescriptor) GetPermissions added in v0.0.4

func (m *GattDescriptor) GetPermissions() (int32, error)

GetPermissions calls android.bluetooth.BluetoothGattDescriptor.getPermissions.

func (*GattDescriptor) GetUuid added in v0.0.4

func (m *GattDescriptor) GetUuid() (*jni.Object, error)

GetUuid calls android.bluetooth.BluetoothGattDescriptor.getUuid.

func (*GattDescriptor) GetValue added in v0.0.4

func (m *GattDescriptor) GetValue() (*jni.Object, error)

GetValue calls android.bluetooth.BluetoothGattDescriptor.getValue.

func (*GattDescriptor) SetValue added in v0.0.4

func (m *GattDescriptor) SetValue(arg0 *jni.Object) (bool, error)

SetValue calls android.bluetooth.BluetoothGattDescriptor.setValue.

func (*GattDescriptor) WriteToParcel added in v0.0.4

func (m *GattDescriptor) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothGattDescriptor.writeToParcel.

type GattServer added in v0.0.4

type GattServer struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

GattServer wraps android.bluetooth.BluetoothGattServer.

func (*GattServer) AddService added in v0.0.4

func (m *GattServer) AddService(arg0 *jni.Object) (bool, error)

AddService calls android.bluetooth.BluetoothGattServer.addService.

func (*GattServer) CancelConnection added in v0.0.4

func (m *GattServer) CancelConnection(arg0 *jni.Object) error

CancelConnection calls android.bluetooth.BluetoothGattServer.cancelConnection.

func (*GattServer) ClearServices added in v0.0.4

func (m *GattServer) ClearServices() error

ClearServices calls android.bluetooth.BluetoothGattServer.clearServices.

func (*GattServer) Close added in v0.0.4

func (m *GattServer) Close() error

Close calls android.bluetooth.BluetoothGattServer.close.

func (*GattServer) Connect added in v0.0.4

func (m *GattServer) Connect(arg0 *jni.Object, arg1 bool) (bool, error)

Connect calls android.bluetooth.BluetoothGattServer.connect.

func (*GattServer) GetConnectionState added in v0.0.4

func (m *GattServer) GetConnectionState(arg0 *jni.Object) (int32, error)

GetConnectionState calls android.bluetooth.BluetoothGattServer.getConnectionState.

func (*GattServer) GetService added in v0.0.4

func (m *GattServer) GetService(arg0 *jni.Object) (*jni.Object, error)

GetService calls android.bluetooth.BluetoothGattServer.getService.

func (*GattServer) NotifyCharacteristicChanged3 added in v0.0.4

func (m *GattServer) NotifyCharacteristicChanged3(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 bool,
) (bool, error)

NotifyCharacteristicChanged3 calls android.bluetooth.BluetoothGattServer.notifyCharacteristicChanged.

func (*GattServer) NotifyCharacteristicChanged4_1 added in v0.0.4

func (m *GattServer) NotifyCharacteristicChanged4_1(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 bool,
	arg3 *jni.Object,
) (int32, error)

NotifyCharacteristicChanged4_1 calls android.bluetooth.BluetoothGattServer.notifyCharacteristicChanged.

func (*GattServer) ReadPhy added in v0.0.4

func (m *GattServer) ReadPhy(arg0 *jni.Object) error

ReadPhy calls android.bluetooth.BluetoothGattServer.readPhy.

func (*GattServer) RemoveService added in v0.0.4

func (m *GattServer) RemoveService(arg0 *jni.Object) (bool, error)

RemoveService calls android.bluetooth.BluetoothGattServer.removeService.

func (*GattServer) SendResponse added in v0.0.4

func (m *GattServer) SendResponse(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
	arg3 int32,
	arg4 *jni.Object,
) (bool, error)

SendResponse calls android.bluetooth.BluetoothGattServer.sendResponse.

func (*GattServer) SetPreferredPhy added in v0.0.4

func (m *GattServer) SetPreferredPhy(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) error

SetPreferredPhy calls android.bluetooth.BluetoothGattServer.setPreferredPhy.

type GattServerCallback added in v0.0.7

type GattServerCallback struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

GattServerCallback wraps android.bluetooth.BluetoothGattServerCallback.

func (*GattServerCallback) OnCharacteristicReadRequest added in v0.0.7

func (m *GattServerCallback) OnCharacteristicReadRequest(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
	arg3 *jni.Object,
) error

OnCharacteristicReadRequest calls android.bluetooth.BluetoothGattServerCallback.onCharacteristicReadRequest.

func (*GattServerCallback) OnCharacteristicWriteRequest added in v0.0.7

func (m *GattServerCallback) OnCharacteristicWriteRequest(
	arg0 *jni.Object,
	arg1 int32,
	arg2 *jni.Object,
	arg3 bool,
	arg4 bool,
	arg5 int32,
	arg6 *jni.Object,
) error

OnCharacteristicWriteRequest calls android.bluetooth.BluetoothGattServerCallback.onCharacteristicWriteRequest.

func (*GattServerCallback) OnConnectionStateChange added in v0.0.7

func (m *GattServerCallback) OnConnectionStateChange(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
) error

OnConnectionStateChange calls android.bluetooth.BluetoothGattServerCallback.onConnectionStateChange.

func (*GattServerCallback) OnDescriptorReadRequest added in v0.0.7

func (m *GattServerCallback) OnDescriptorReadRequest(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
	arg3 *jni.Object,
) error

OnDescriptorReadRequest calls android.bluetooth.BluetoothGattServerCallback.onDescriptorReadRequest.

func (*GattServerCallback) OnDescriptorWriteRequest added in v0.0.7

func (m *GattServerCallback) OnDescriptorWriteRequest(
	arg0 *jni.Object,
	arg1 int32,
	arg2 *jni.Object,
	arg3 bool,
	arg4 bool,
	arg5 int32,
	arg6 *jni.Object,
) error

OnDescriptorWriteRequest calls android.bluetooth.BluetoothGattServerCallback.onDescriptorWriteRequest.

func (*GattServerCallback) OnExecuteWrite added in v0.0.7

func (m *GattServerCallback) OnExecuteWrite(
	arg0 *jni.Object,
	arg1 int32,
	arg2 bool,
) error

OnExecuteWrite calls android.bluetooth.BluetoothGattServerCallback.onExecuteWrite.

func (*GattServerCallback) OnMtuChanged added in v0.0.7

func (m *GattServerCallback) OnMtuChanged(arg0 *jni.Object, arg1 int32) error

OnMtuChanged calls android.bluetooth.BluetoothGattServerCallback.onMtuChanged.

func (*GattServerCallback) OnNotificationSent added in v0.0.7

func (m *GattServerCallback) OnNotificationSent(arg0 *jni.Object, arg1 int32) error

OnNotificationSent calls android.bluetooth.BluetoothGattServerCallback.onNotificationSent.

func (*GattServerCallback) OnPhyRead added in v0.0.7

func (m *GattServerCallback) OnPhyRead(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) error

OnPhyRead calls android.bluetooth.BluetoothGattServerCallback.onPhyRead.

func (*GattServerCallback) OnPhyUpdate added in v0.0.7

func (m *GattServerCallback) OnPhyUpdate(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) error

OnPhyUpdate calls android.bluetooth.BluetoothGattServerCallback.onPhyUpdate.

func (*GattServerCallback) OnServiceAdded added in v0.0.7

func (m *GattServerCallback) OnServiceAdded(arg0 int32, arg1 *jni.Object) error

OnServiceAdded calls android.bluetooth.BluetoothGattServerCallback.onServiceAdded.

type GattService added in v0.0.4

type GattService struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

GattService wraps android.bluetooth.BluetoothGattService.

func NewGattService added in v0.0.7

func NewGattService(vm *jni.VM, arg0 *jni.Object, arg1 int32) (*GattService, error)

NewGattService creates a new android.bluetooth.BluetoothGattService instance.

func (*GattService) AddCharacteristic added in v0.0.4

func (m *GattService) AddCharacteristic(arg0 *jni.Object) (bool, error)

AddCharacteristic calls android.bluetooth.BluetoothGattService.addCharacteristic.

func (*GattService) AddService added in v0.0.4

func (m *GattService) AddService(arg0 *jni.Object) (bool, error)

AddService calls android.bluetooth.BluetoothGattService.addService.

func (*GattService) DescribeContents added in v0.0.4

func (m *GattService) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothGattService.describeContents.

func (*GattService) GetCharacteristic added in v0.0.4

func (m *GattService) GetCharacteristic(arg0 *jni.Object) (*jni.Object, error)

GetCharacteristic calls android.bluetooth.BluetoothGattService.getCharacteristic.

func (*GattService) GetInstanceId added in v0.0.4

func (m *GattService) GetInstanceId() (int32, error)

GetInstanceId calls android.bluetooth.BluetoothGattService.getInstanceId.

func (*GattService) GetType added in v0.0.4

func (m *GattService) GetType() (int32, error)

GetType calls android.bluetooth.BluetoothGattService.getType.

func (*GattService) GetUuid added in v0.0.4

func (m *GattService) GetUuid() (*jni.Object, error)

GetUuid calls android.bluetooth.BluetoothGattService.getUuid.

func (*GattService) WriteToParcel added in v0.0.4

func (m *GattService) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothGattService.writeToParcel.

type Headset added in v0.0.7

type Headset struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Headset wraps android.bluetooth.BluetoothHeadset.

func (*Headset) GetConnectionState added in v0.0.7

func (m *Headset) GetConnectionState(arg0 *jni.Object) (int32, error)

GetConnectionState calls android.bluetooth.BluetoothHeadset.getConnectionState.

func (*Headset) IsAudioConnected added in v0.0.7

func (m *Headset) IsAudioConnected(arg0 *jni.Object) (bool, error)

IsAudioConnected calls android.bluetooth.BluetoothHeadset.isAudioConnected.

func (*Headset) IsNoiseReductionSupported added in v0.0.7

func (m *Headset) IsNoiseReductionSupported(arg0 *jni.Object) (bool, error)

IsNoiseReductionSupported calls android.bluetooth.BluetoothHeadset.isNoiseReductionSupported.

func (*Headset) IsVoiceRecognitionSupported added in v0.0.7

func (m *Headset) IsVoiceRecognitionSupported(arg0 *jni.Object) (bool, error)

IsVoiceRecognitionSupported calls android.bluetooth.BluetoothHeadset.isVoiceRecognitionSupported.

func (*Headset) SendVendorSpecificResultCode added in v0.0.7

func (m *Headset) SendVendorSpecificResultCode(
	arg0 *jni.Object,
	arg1 string,
	arg2 string,
) (bool, error)

SendVendorSpecificResultCode calls android.bluetooth.BluetoothHeadset.sendVendorSpecificResultCode.

func (*Headset) StartVoiceRecognition added in v0.0.7

func (m *Headset) StartVoiceRecognition(arg0 *jni.Object) (bool, error)

StartVoiceRecognition calls android.bluetooth.BluetoothHeadset.startVoiceRecognition.

func (*Headset) StopVoiceRecognition added in v0.0.7

func (m *Headset) StopVoiceRecognition(arg0 *jni.Object) (bool, error)

StopVoiceRecognition calls android.bluetooth.BluetoothHeadset.stopVoiceRecognition.

type Health added in v0.0.7

type Health struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Health wraps android.bluetooth.BluetoothHealth.

func (*Health) ConnectChannelToSource added in v0.0.7

func (m *Health) ConnectChannelToSource(arg0 *jni.Object, arg1 *jni.Object) (bool, error)

ConnectChannelToSource calls android.bluetooth.BluetoothHealth.connectChannelToSource.

func (*Health) DisconnectChannel added in v0.0.7

func (m *Health) DisconnectChannel(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int32,
) (bool, error)

DisconnectChannel calls android.bluetooth.BluetoothHealth.disconnectChannel.

func (*Health) GetConnectionState added in v0.0.7

func (m *Health) GetConnectionState(arg0 *jni.Object) (int32, error)

GetConnectionState calls android.bluetooth.BluetoothHealth.getConnectionState.

func (*Health) GetMainChannelFd added in v0.0.7

func (m *Health) GetMainChannelFd(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)

GetMainChannelFd calls android.bluetooth.BluetoothHealth.getMainChannelFd.

func (*Health) RegisterSinkAppConfiguration added in v0.0.7

func (m *Health) RegisterSinkAppConfiguration(
	arg0 string,
	arg1 int32,
	arg2 *jni.Object,
) (bool, error)

RegisterSinkAppConfiguration calls android.bluetooth.BluetoothHealth.registerSinkAppConfiguration.

func (*Health) UnregisterAppConfiguration added in v0.0.7

func (m *Health) UnregisterAppConfiguration(arg0 *jni.Object) (bool, error)

UnregisterAppConfiguration calls android.bluetooth.BluetoothHealth.unregisterAppConfiguration.

type HealthAppConfiguration added in v0.0.7

type HealthAppConfiguration struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

HealthAppConfiguration wraps android.bluetooth.BluetoothHealthAppConfiguration.

func (*HealthAppConfiguration) DescribeContents added in v0.0.7

func (m *HealthAppConfiguration) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothHealthAppConfiguration.describeContents.

func (*HealthAppConfiguration) GetDataType added in v0.0.7

func (m *HealthAppConfiguration) GetDataType() (int32, error)

GetDataType calls android.bluetooth.BluetoothHealthAppConfiguration.getDataType.

func (*HealthAppConfiguration) GetName added in v0.0.7

func (m *HealthAppConfiguration) GetName() (string, error)

GetName calls android.bluetooth.BluetoothHealthAppConfiguration.getName.

func (*HealthAppConfiguration) GetRole added in v0.0.7

func (m *HealthAppConfiguration) GetRole() (int32, error)

GetRole calls android.bluetooth.BluetoothHealthAppConfiguration.getRole.

func (*HealthAppConfiguration) WriteToParcel added in v0.0.7

func (m *HealthAppConfiguration) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothHealthAppConfiguration.writeToParcel.

type HealthCallback added in v0.0.7

type HealthCallback struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

HealthCallback wraps android.bluetooth.BluetoothHealthCallback.

func (*HealthCallback) OnHealthAppConfigurationStatusChange added in v0.0.7

func (m *HealthCallback) OnHealthAppConfigurationStatusChange(arg0 *jni.Object, arg1 int32) error

OnHealthAppConfigurationStatusChange calls android.bluetooth.BluetoothHealthCallback.onHealthAppConfigurationStatusChange.

func (*HealthCallback) OnHealthChannelStateChange added in v0.0.7

func (m *HealthCallback) OnHealthChannelStateChange(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int32,
	arg3 int32,
	arg4 *jni.Object,
	arg5 int32,
) error

OnHealthChannelStateChange calls android.bluetooth.BluetoothHealthCallback.onHealthChannelStateChange.

type HearingAid added in v0.0.7

type HearingAid struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

HearingAid wraps android.bluetooth.BluetoothHearingAid.

func (*HearingAid) GetConnectionState added in v0.0.7

func (m *HearingAid) GetConnectionState(arg0 *jni.Object) (int32, error)

GetConnectionState calls android.bluetooth.BluetoothHearingAid.getConnectionState.

type HidDevice added in v0.0.7

type HidDevice struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

HidDevice wraps android.bluetooth.BluetoothHidDevice.

func (*HidDevice) Connect added in v0.0.7

func (m *HidDevice) Connect(arg0 *jni.Object) (bool, error)

Connect calls android.bluetooth.BluetoothHidDevice.connect.

func (*HidDevice) Disconnect added in v0.0.7

func (m *HidDevice) Disconnect(arg0 *jni.Object) (bool, error)

Disconnect calls android.bluetooth.BluetoothHidDevice.disconnect.

func (*HidDevice) GetConnectionState added in v0.0.7

func (m *HidDevice) GetConnectionState(arg0 *jni.Object) (int32, error)

GetConnectionState calls android.bluetooth.BluetoothHidDevice.getConnectionState.

func (*HidDevice) RegisterApp added in v0.0.7

func (m *HidDevice) RegisterApp(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
	arg3 *jni.Object,
	arg4 *jni.Object,
) (bool, error)

RegisterApp calls android.bluetooth.BluetoothHidDevice.registerApp.

func (*HidDevice) ReplyReport added in v0.0.7

func (m *HidDevice) ReplyReport(
	arg0 *jni.Object,
	arg1 int8,
	arg2 int8,
	arg3 *jni.Object,
) (bool, error)

ReplyReport calls android.bluetooth.BluetoothHidDevice.replyReport.

func (*HidDevice) ReportError added in v0.0.7

func (m *HidDevice) ReportError(arg0 *jni.Object, arg1 int8) (bool, error)

ReportError calls android.bluetooth.BluetoothHidDevice.reportError.

func (*HidDevice) SendReport added in v0.0.7

func (m *HidDevice) SendReport(
	arg0 *jni.Object,
	arg1 int32,
	arg2 *jni.Object,
) (bool, error)

SendReport calls android.bluetooth.BluetoothHidDevice.sendReport.

func (*HidDevice) UnregisterApp added in v0.0.7

func (m *HidDevice) UnregisterApp() (bool, error)

UnregisterApp calls android.bluetooth.BluetoothHidDevice.unregisterApp.

type HidDeviceAppQosSettings added in v0.0.7

type HidDeviceAppQosSettings struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

HidDeviceAppQosSettings wraps android.bluetooth.BluetoothHidDeviceAppQosSettings.

func NewHidDeviceAppQosSettings added in v0.0.7

func NewHidDeviceAppQosSettings(vm *jni.VM, arg0 int32, arg1 int32, arg2 int32, arg3 int32, arg4 int32, arg5 int32) (*HidDeviceAppQosSettings, error)

NewHidDeviceAppQosSettings creates a new android.bluetooth.BluetoothHidDeviceAppQosSettings instance.

func (*HidDeviceAppQosSettings) DescribeContents added in v0.0.7

func (m *HidDeviceAppQosSettings) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothHidDeviceAppQosSettings.describeContents.

func (*HidDeviceAppQosSettings) GetDelayVariation added in v0.0.7

func (m *HidDeviceAppQosSettings) GetDelayVariation() (int32, error)

GetDelayVariation calls android.bluetooth.BluetoothHidDeviceAppQosSettings.getDelayVariation.

func (*HidDeviceAppQosSettings) GetLatency added in v0.0.7

func (m *HidDeviceAppQosSettings) GetLatency() (int32, error)

GetLatency calls android.bluetooth.BluetoothHidDeviceAppQosSettings.getLatency.

func (*HidDeviceAppQosSettings) GetPeakBandwidth added in v0.0.7

func (m *HidDeviceAppQosSettings) GetPeakBandwidth() (int32, error)

GetPeakBandwidth calls android.bluetooth.BluetoothHidDeviceAppQosSettings.getPeakBandwidth.

func (*HidDeviceAppQosSettings) GetServiceType added in v0.0.7

func (m *HidDeviceAppQosSettings) GetServiceType() (int32, error)

GetServiceType calls android.bluetooth.BluetoothHidDeviceAppQosSettings.getServiceType.

func (*HidDeviceAppQosSettings) GetTokenBucketSize added in v0.0.7

func (m *HidDeviceAppQosSettings) GetTokenBucketSize() (int32, error)

GetTokenBucketSize calls android.bluetooth.BluetoothHidDeviceAppQosSettings.getTokenBucketSize.

func (*HidDeviceAppQosSettings) GetTokenRate added in v0.0.7

func (m *HidDeviceAppQosSettings) GetTokenRate() (int32, error)

GetTokenRate calls android.bluetooth.BluetoothHidDeviceAppQosSettings.getTokenRate.

func (*HidDeviceAppQosSettings) WriteToParcel added in v0.0.7

func (m *HidDeviceAppQosSettings) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothHidDeviceAppQosSettings.writeToParcel.

type HidDeviceAppSdpSettings added in v0.0.7

type HidDeviceAppSdpSettings struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

HidDeviceAppSdpSettings wraps android.bluetooth.BluetoothHidDeviceAppSdpSettings.

func NewHidDeviceAppSdpSettings added in v0.0.7

func NewHidDeviceAppSdpSettings(vm *jni.VM, arg0 string, arg1 string, arg2 string, arg3 int8, arg4 *jni.Object) (*HidDeviceAppSdpSettings, error)

NewHidDeviceAppSdpSettings creates a new android.bluetooth.BluetoothHidDeviceAppSdpSettings instance.

func (*HidDeviceAppSdpSettings) DescribeContents added in v0.0.7

func (m *HidDeviceAppSdpSettings) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothHidDeviceAppSdpSettings.describeContents.

func (*HidDeviceAppSdpSettings) GetDescription added in v0.0.7

func (m *HidDeviceAppSdpSettings) GetDescription() (string, error)

GetDescription calls android.bluetooth.BluetoothHidDeviceAppSdpSettings.getDescription.

func (*HidDeviceAppSdpSettings) GetDescriptors added in v0.0.7

func (m *HidDeviceAppSdpSettings) GetDescriptors() (*jni.Object, error)

GetDescriptors calls android.bluetooth.BluetoothHidDeviceAppSdpSettings.getDescriptors.

func (*HidDeviceAppSdpSettings) GetName added in v0.0.7

func (m *HidDeviceAppSdpSettings) GetName() (string, error)

GetName calls android.bluetooth.BluetoothHidDeviceAppSdpSettings.getName.

func (*HidDeviceAppSdpSettings) GetProvider added in v0.0.7

func (m *HidDeviceAppSdpSettings) GetProvider() (string, error)

GetProvider calls android.bluetooth.BluetoothHidDeviceAppSdpSettings.getProvider.

func (*HidDeviceAppSdpSettings) GetSubclass added in v0.0.7

func (m *HidDeviceAppSdpSettings) GetSubclass() (int8, error)

GetSubclass calls android.bluetooth.BluetoothHidDeviceAppSdpSettings.getSubclass.

func (*HidDeviceAppSdpSettings) WriteToParcel added in v0.0.7

func (m *HidDeviceAppSdpSettings) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothHidDeviceAppSdpSettings.writeToParcel.

type HidDeviceCallback added in v0.0.7

type HidDeviceCallback struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

HidDeviceCallback wraps android.bluetooth.BluetoothHidDevice$Callback.

func (*HidDeviceCallback) OnAppStatusChanged added in v0.0.7

func (m *HidDeviceCallback) OnAppStatusChanged(arg0 *jni.Object, arg1 bool) error

OnAppStatusChanged calls android.bluetooth.BluetoothHidDevice$Callback.onAppStatusChanged.

func (*HidDeviceCallback) OnConnectionStateChanged added in v0.0.7

func (m *HidDeviceCallback) OnConnectionStateChanged(arg0 *jni.Object, arg1 int32) error

OnConnectionStateChanged calls android.bluetooth.BluetoothHidDevice$Callback.onConnectionStateChanged.

func (*HidDeviceCallback) OnGetReport added in v0.0.7

func (m *HidDeviceCallback) OnGetReport(
	arg0 *jni.Object,
	arg1 int8,
	arg2 int8,
	arg3 int32,
) error

OnGetReport calls android.bluetooth.BluetoothHidDevice$Callback.onGetReport.

func (*HidDeviceCallback) OnInterruptData added in v0.0.7

func (m *HidDeviceCallback) OnInterruptData(
	arg0 *jni.Object,
	arg1 int8,
	arg2 *jni.Object,
) error

OnInterruptData calls android.bluetooth.BluetoothHidDevice$Callback.onInterruptData.

func (*HidDeviceCallback) OnSetProtocol added in v0.0.7

func (m *HidDeviceCallback) OnSetProtocol(arg0 *jni.Object, arg1 int8) error

OnSetProtocol calls android.bluetooth.BluetoothHidDevice$Callback.onSetProtocol.

func (*HidDeviceCallback) OnSetReport added in v0.0.7

func (m *HidDeviceCallback) OnSetReport(
	arg0 *jni.Object,
	arg1 int8,
	arg2 int8,
	arg3 *jni.Object,
) error

OnSetReport calls android.bluetooth.BluetoothHidDevice$Callback.onSetReport.

func (*HidDeviceCallback) OnVirtualCableUnplug added in v0.0.7

func (m *HidDeviceCallback) OnVirtualCableUnplug(arg0 *jni.Object) error

OnVirtualCableUnplug calls android.bluetooth.BluetoothHidDevice$Callback.onVirtualCableUnplug.

type LeAudio added in v0.0.7

type LeAudio struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

LeAudio wraps android.bluetooth.BluetoothLeAudio.

func (*LeAudio) Close added in v0.0.7

func (m *LeAudio) Close() error

Close calls android.bluetooth.BluetoothLeAudio.close.

func (*LeAudio) GetConnectedGroupLeadDevice added in v0.0.7

func (m *LeAudio) GetConnectedGroupLeadDevice(arg0 int32) (*jni.Object, error)

GetConnectedGroupLeadDevice calls android.bluetooth.BluetoothLeAudio.getConnectedGroupLeadDevice.

func (*LeAudio) GetConnectionState added in v0.0.7

func (m *LeAudio) GetConnectionState(arg0 *jni.Object) (int32, error)

GetConnectionState calls android.bluetooth.BluetoothLeAudio.getConnectionState.

func (*LeAudio) GetGroupId added in v0.0.7

func (m *LeAudio) GetGroupId(arg0 *jni.Object) (int32, error)

GetGroupId calls android.bluetooth.BluetoothLeAudio.getGroupId.

type LeAudioCodecConfig added in v0.0.7

type LeAudioCodecConfig struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

LeAudioCodecConfig wraps android.bluetooth.BluetoothLeAudioCodecConfig.

func (*LeAudioCodecConfig) DescribeContents added in v0.0.7

func (m *LeAudioCodecConfig) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothLeAudioCodecConfig.describeContents.

func (*LeAudioCodecConfig) Equals added in v0.0.7

func (m *LeAudioCodecConfig) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.bluetooth.BluetoothLeAudioCodecConfig.equals.

func (*LeAudioCodecConfig) GetBitsPerSample added in v0.0.7

func (m *LeAudioCodecConfig) GetBitsPerSample() (int32, error)

GetBitsPerSample calls android.bluetooth.BluetoothLeAudioCodecConfig.getBitsPerSample.

func (*LeAudioCodecConfig) GetChannelCount added in v0.0.7

func (m *LeAudioCodecConfig) GetChannelCount() (int32, error)

GetChannelCount calls android.bluetooth.BluetoothLeAudioCodecConfig.getChannelCount.

func (*LeAudioCodecConfig) GetCodecName added in v0.0.7

func (m *LeAudioCodecConfig) GetCodecName() (string, error)

GetCodecName calls android.bluetooth.BluetoothLeAudioCodecConfig.getCodecName.

func (*LeAudioCodecConfig) GetCodecPriority added in v0.0.7

func (m *LeAudioCodecConfig) GetCodecPriority() (int32, error)

GetCodecPriority calls android.bluetooth.BluetoothLeAudioCodecConfig.getCodecPriority.

func (*LeAudioCodecConfig) GetCodecType added in v0.0.7

func (m *LeAudioCodecConfig) GetCodecType() (int32, error)

GetCodecType calls android.bluetooth.BluetoothLeAudioCodecConfig.getCodecType.

func (*LeAudioCodecConfig) GetFrameDuration added in v0.0.7

func (m *LeAudioCodecConfig) GetFrameDuration() (int32, error)

GetFrameDuration calls android.bluetooth.BluetoothLeAudioCodecConfig.getFrameDuration.

func (*LeAudioCodecConfig) GetMaxOctetsPerFrame added in v0.0.7

func (m *LeAudioCodecConfig) GetMaxOctetsPerFrame() (int32, error)

GetMaxOctetsPerFrame calls android.bluetooth.BluetoothLeAudioCodecConfig.getMaxOctetsPerFrame.

func (*LeAudioCodecConfig) GetMinOctetsPerFrame added in v0.0.7

func (m *LeAudioCodecConfig) GetMinOctetsPerFrame() (int32, error)

GetMinOctetsPerFrame calls android.bluetooth.BluetoothLeAudioCodecConfig.getMinOctetsPerFrame.

func (*LeAudioCodecConfig) GetOctetsPerFrame added in v0.0.7

func (m *LeAudioCodecConfig) GetOctetsPerFrame() (int32, error)

GetOctetsPerFrame calls android.bluetooth.BluetoothLeAudioCodecConfig.getOctetsPerFrame.

func (*LeAudioCodecConfig) GetSampleRate added in v0.0.7

func (m *LeAudioCodecConfig) GetSampleRate() (int32, error)

GetSampleRate calls android.bluetooth.BluetoothLeAudioCodecConfig.getSampleRate.

func (*LeAudioCodecConfig) HashCode added in v0.0.7

func (m *LeAudioCodecConfig) HashCode() (int32, error)

HashCode calls android.bluetooth.BluetoothLeAudioCodecConfig.hashCode.

func (*LeAudioCodecConfig) ToString added in v0.0.7

func (m *LeAudioCodecConfig) ToString() (string, error)

ToString calls android.bluetooth.BluetoothLeAudioCodecConfig.toString.

func (*LeAudioCodecConfig) WriteToParcel added in v0.0.7

func (m *LeAudioCodecConfig) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothLeAudioCodecConfig.writeToParcel.

type LeAudioCodecConfigBuilder added in v0.0.7

type LeAudioCodecConfigBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

LeAudioCodecConfigBuilder wraps android.bluetooth.BluetoothLeAudioCodecConfig$Builder.

func (*LeAudioCodecConfigBuilder) Build added in v0.0.7

func (m *LeAudioCodecConfigBuilder) Build() (*jni.Object, error)

Build calls android.bluetooth.BluetoothLeAudioCodecConfig$Builder.build.

func (*LeAudioCodecConfigBuilder) SetBitsPerSample added in v0.0.7

func (m *LeAudioCodecConfigBuilder) SetBitsPerSample(arg0 int32) (*jni.Object, error)

SetBitsPerSample calls android.bluetooth.BluetoothLeAudioCodecConfig$Builder.setBitsPerSample.

func (*LeAudioCodecConfigBuilder) SetChannelCount added in v0.0.7

func (m *LeAudioCodecConfigBuilder) SetChannelCount(arg0 int32) (*jni.Object, error)

SetChannelCount calls android.bluetooth.BluetoothLeAudioCodecConfig$Builder.setChannelCount.

func (*LeAudioCodecConfigBuilder) SetCodecPriority added in v0.0.7

func (m *LeAudioCodecConfigBuilder) SetCodecPriority(arg0 int32) (*jni.Object, error)

SetCodecPriority calls android.bluetooth.BluetoothLeAudioCodecConfig$Builder.setCodecPriority.

func (*LeAudioCodecConfigBuilder) SetCodecType added in v0.0.7

func (m *LeAudioCodecConfigBuilder) SetCodecType(arg0 int32) (*jni.Object, error)

SetCodecType calls android.bluetooth.BluetoothLeAudioCodecConfig$Builder.setCodecType.

func (*LeAudioCodecConfigBuilder) SetFrameDuration added in v0.0.7

func (m *LeAudioCodecConfigBuilder) SetFrameDuration(arg0 int32) (*jni.Object, error)

SetFrameDuration calls android.bluetooth.BluetoothLeAudioCodecConfig$Builder.setFrameDuration.

func (*LeAudioCodecConfigBuilder) SetMaxOctetsPerFrame added in v0.0.7

func (m *LeAudioCodecConfigBuilder) SetMaxOctetsPerFrame(arg0 int32) (*jni.Object, error)

SetMaxOctetsPerFrame calls android.bluetooth.BluetoothLeAudioCodecConfig$Builder.setMaxOctetsPerFrame.

func (*LeAudioCodecConfigBuilder) SetMinOctetsPerFrame added in v0.0.7

func (m *LeAudioCodecConfigBuilder) SetMinOctetsPerFrame(arg0 int32) (*jni.Object, error)

SetMinOctetsPerFrame calls android.bluetooth.BluetoothLeAudioCodecConfig$Builder.setMinOctetsPerFrame.

func (*LeAudioCodecConfigBuilder) SetOctetsPerFrame added in v0.0.7

func (m *LeAudioCodecConfigBuilder) SetOctetsPerFrame(arg0 int32) (*jni.Object, error)

SetOctetsPerFrame calls android.bluetooth.BluetoothLeAudioCodecConfig$Builder.setOctetsPerFrame.

func (*LeAudioCodecConfigBuilder) SetSampleRate added in v0.0.7

func (m *LeAudioCodecConfigBuilder) SetSampleRate(arg0 int32) (*jni.Object, error)

SetSampleRate calls android.bluetooth.BluetoothLeAudioCodecConfig$Builder.setSampleRate.

type LeAudioCodecStatus added in v0.0.7

type LeAudioCodecStatus struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

LeAudioCodecStatus wraps android.bluetooth.BluetoothLeAudioCodecStatus.

func NewLeAudioCodecStatus added in v0.0.7

func NewLeAudioCodecStatus(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, arg3 *jni.Object, arg4 *jni.Object, arg5 *jni.Object) (*LeAudioCodecStatus, error)

NewLeAudioCodecStatus creates a new android.bluetooth.BluetoothLeAudioCodecStatus instance.

func (*LeAudioCodecStatus) DescribeContents added in v0.0.7

func (m *LeAudioCodecStatus) DescribeContents() (int32, error)

DescribeContents calls android.bluetooth.BluetoothLeAudioCodecStatus.describeContents.

func (*LeAudioCodecStatus) Equals added in v0.0.7

func (m *LeAudioCodecStatus) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.bluetooth.BluetoothLeAudioCodecStatus.equals.

func (*LeAudioCodecStatus) GetInputCodecConfig added in v0.0.7

func (m *LeAudioCodecStatus) GetInputCodecConfig() (*jni.Object, error)

GetInputCodecConfig calls android.bluetooth.BluetoothLeAudioCodecStatus.getInputCodecConfig.

func (*LeAudioCodecStatus) GetOutputCodecConfig added in v0.0.7

func (m *LeAudioCodecStatus) GetOutputCodecConfig() (*jni.Object, error)

GetOutputCodecConfig calls android.bluetooth.BluetoothLeAudioCodecStatus.getOutputCodecConfig.

func (*LeAudioCodecStatus) HashCode added in v0.0.7

func (m *LeAudioCodecStatus) HashCode() (int32, error)

HashCode calls android.bluetooth.BluetoothLeAudioCodecStatus.hashCode.

func (*LeAudioCodecStatus) IsInputCodecConfigSelectable added in v0.0.7

func (m *LeAudioCodecStatus) IsInputCodecConfigSelectable(arg0 *jni.Object) (bool, error)

IsInputCodecConfigSelectable calls android.bluetooth.BluetoothLeAudioCodecStatus.isInputCodecConfigSelectable.

func (*LeAudioCodecStatus) IsOutputCodecConfigSelectable added in v0.0.7

func (m *LeAudioCodecStatus) IsOutputCodecConfigSelectable(arg0 *jni.Object) (bool, error)

IsOutputCodecConfigSelectable calls android.bluetooth.BluetoothLeAudioCodecStatus.isOutputCodecConfigSelectable.

func (*LeAudioCodecStatus) ToString added in v0.0.7

func (m *LeAudioCodecStatus) ToString() (string, error)

ToString calls android.bluetooth.BluetoothLeAudioCodecStatus.toString.

func (*LeAudioCodecStatus) WriteToParcel added in v0.0.7

func (m *LeAudioCodecStatus) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.bluetooth.BluetoothLeAudioCodecStatus.writeToParcel.

type Manager added in v0.0.7

type Manager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

Manager wraps android.bluetooth.BluetoothManager.

func NewManager added in v0.0.7

func NewManager(ctx *app.Context) (*Manager, error)

NewManager obtains android.bluetooth.BluetoothManager from the Android system service manager.

func (*Manager) Close added in v0.0.7

func (m *Manager) Close()

Close releases the global reference to the underlying Java object. After Close, the Manager must not be used.

func (*Manager) GetAdapter added in v0.0.7

func (m *Manager) GetAdapter() (*jni.Object, error)

GetAdapter calls android.bluetooth.BluetoothManager.getAdapter.

func (*Manager) GetConnectionState added in v0.0.7

func (m *Manager) GetConnectionState(arg0 *jni.Object, arg1 int32) (int32, error)

GetConnectionState calls android.bluetooth.BluetoothManager.getConnectionState.

func (*Manager) OpenGattServer added in v0.0.7

func (m *Manager) OpenGattServer(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)

OpenGattServer calls android.bluetooth.BluetoothManager.openGattServer.

type Profile added in v0.0.7

type Profile struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Profile wraps android.bluetooth.BluetoothProfile.

func (*Profile) GetConnectionState added in v0.0.7

func (m *Profile) GetConnectionState(arg0 *jni.Object) (int32, error)

GetConnectionState calls android.bluetooth.BluetoothProfile.getConnectionState.

type ProfileServiceListener added in v0.0.7

type ProfileServiceListener struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ProfileServiceListener wraps android.bluetooth.BluetoothProfile$ServiceListener.

func (*ProfileServiceListener) OnServiceConnected added in v0.0.7

func (m *ProfileServiceListener) OnServiceConnected(arg0 int32, arg1 *jni.Object) error

OnServiceConnected calls android.bluetooth.BluetoothProfile$ServiceListener.onServiceConnected.

func (*ProfileServiceListener) OnServiceDisconnected added in v0.0.7

func (m *ProfileServiceListener) OnServiceDisconnected(arg0 int32) error

OnServiceDisconnected calls android.bluetooth.BluetoothProfile$ServiceListener.onServiceDisconnected.

type ServerSocket added in v0.0.4

type ServerSocket struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ServerSocket wraps android.bluetooth.BluetoothServerSocket.

func (*ServerSocket) Accept0 added in v0.0.4

func (m *ServerSocket) Accept0() (*jni.Object, error)

Accept0 calls android.bluetooth.BluetoothServerSocket.accept.

func (*ServerSocket) Accept1_1 added in v0.0.4

func (m *ServerSocket) Accept1_1(arg0 int32) (*jni.Object, error)

Accept1_1 calls android.bluetooth.BluetoothServerSocket.accept.

func (*ServerSocket) Close added in v0.0.4

func (m *ServerSocket) Close() error

Close calls android.bluetooth.BluetoothServerSocket.close.

func (*ServerSocket) GetPsm added in v0.0.4

func (m *ServerSocket) GetPsm() (int32, error)

GetPsm calls android.bluetooth.BluetoothServerSocket.getPsm.

func (*ServerSocket) ToString added in v0.0.4

func (m *ServerSocket) ToString() (string, error)

ToString calls android.bluetooth.BluetoothServerSocket.toString.

type Socket added in v0.0.4

type Socket struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Socket wraps android.bluetooth.BluetoothSocket.

func (*Socket) Close added in v0.0.4

func (m *Socket) Close() error

Close calls android.bluetooth.BluetoothSocket.close.

func (*Socket) Connect added in v0.0.4

func (m *Socket) Connect() error

Connect calls android.bluetooth.BluetoothSocket.connect.

func (*Socket) GetConnectionType added in v0.0.4

func (m *Socket) GetConnectionType() (int32, error)

GetConnectionType calls android.bluetooth.BluetoothSocket.getConnectionType.

func (*Socket) GetInputStream added in v0.0.4

func (m *Socket) GetInputStream() (*jni.Object, error)

GetInputStream calls android.bluetooth.BluetoothSocket.getInputStream.

func (*Socket) GetMaxReceivePacketSize added in v0.0.4

func (m *Socket) GetMaxReceivePacketSize() (int32, error)

GetMaxReceivePacketSize calls android.bluetooth.BluetoothSocket.getMaxReceivePacketSize.

func (*Socket) GetMaxTransmitPacketSize added in v0.0.4

func (m *Socket) GetMaxTransmitPacketSize() (int32, error)

GetMaxTransmitPacketSize calls android.bluetooth.BluetoothSocket.getMaxTransmitPacketSize.

func (*Socket) GetOutputStream added in v0.0.4

func (m *Socket) GetOutputStream() (*jni.Object, error)

GetOutputStream calls android.bluetooth.BluetoothSocket.getOutputStream.

func (*Socket) GetRemoteDevice added in v0.0.4

func (m *Socket) GetRemoteDevice() (*jni.Object, error)

GetRemoteDevice calls android.bluetooth.BluetoothSocket.getRemoteDevice.

func (*Socket) IsConnected added in v0.0.4

func (m *Socket) IsConnected() (bool, error)

IsConnected calls android.bluetooth.BluetoothSocket.isConnected.

func (*Socket) ToString added in v0.0.4

func (m *Socket) ToString() (string, error)

ToString calls android.bluetooth.BluetoothSocket.toString.

type SocketException added in v0.0.7

type SocketException struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SocketException wraps android.bluetooth.BluetoothSocketException.

func NewSocketException added in v0.0.7

func NewSocketException(vm *jni.VM, arg0 int32) (*SocketException, error)

NewSocketException creates a new android.bluetooth.BluetoothSocketException instance.

func (*SocketException) GetErrorCode added in v0.0.7

func (m *SocketException) GetErrorCode() (int32, error)

GetErrorCode calls android.bluetooth.BluetoothSocketException.getErrorCode.

type SocketSettings added in v0.0.7

type SocketSettings struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SocketSettings wraps android.bluetooth.BluetoothSocketSettings.

func (*SocketSettings) GetL2capPsm added in v0.0.7

func (m *SocketSettings) GetL2capPsm() (int32, error)

GetL2capPsm calls android.bluetooth.BluetoothSocketSettings.getL2capPsm.

func (*SocketSettings) GetRfcommServiceName added in v0.0.7

func (m *SocketSettings) GetRfcommServiceName() (string, error)

GetRfcommServiceName calls android.bluetooth.BluetoothSocketSettings.getRfcommServiceName.

func (*SocketSettings) GetRfcommUuid added in v0.0.7

func (m *SocketSettings) GetRfcommUuid() (*jni.Object, error)

GetRfcommUuid calls android.bluetooth.BluetoothSocketSettings.getRfcommUuid.

func (*SocketSettings) GetSocketType added in v0.0.7

func (m *SocketSettings) GetSocketType() (int32, error)

GetSocketType calls android.bluetooth.BluetoothSocketSettings.getSocketType.

func (*SocketSettings) IsAuthenticationRequired added in v0.0.7

func (m *SocketSettings) IsAuthenticationRequired() (bool, error)

IsAuthenticationRequired calls android.bluetooth.BluetoothSocketSettings.isAuthenticationRequired.

func (*SocketSettings) IsEncryptionRequired added in v0.0.7

func (m *SocketSettings) IsEncryptionRequired() (bool, error)

IsEncryptionRequired calls android.bluetooth.BluetoothSocketSettings.isEncryptionRequired.

func (*SocketSettings) ToString added in v0.0.7

func (m *SocketSettings) ToString() (string, error)

ToString calls android.bluetooth.BluetoothSocketSettings.toString.

type SocketSettingsBuilder added in v0.0.7

type SocketSettingsBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SocketSettingsBuilder wraps android.bluetooth.BluetoothSocketSettings$Builder.

func (*SocketSettingsBuilder) Build added in v0.0.7

func (m *SocketSettingsBuilder) Build() (*jni.Object, error)

Build calls android.bluetooth.BluetoothSocketSettings$Builder.build.

func (*SocketSettingsBuilder) SetAuthenticationRequired added in v0.0.7

func (m *SocketSettingsBuilder) SetAuthenticationRequired(arg0 bool) (*jni.Object, error)

SetAuthenticationRequired calls android.bluetooth.BluetoothSocketSettings$Builder.setAuthenticationRequired.

func (*SocketSettingsBuilder) SetEncryptionRequired added in v0.0.7

func (m *SocketSettingsBuilder) SetEncryptionRequired(arg0 bool) (*jni.Object, error)

SetEncryptionRequired calls android.bluetooth.BluetoothSocketSettings$Builder.setEncryptionRequired.

func (*SocketSettingsBuilder) SetL2capPsm added in v0.0.7

func (m *SocketSettingsBuilder) SetL2capPsm(arg0 int32) (*jni.Object, error)

SetL2capPsm calls android.bluetooth.BluetoothSocketSettings$Builder.setL2capPsm.

func (*SocketSettingsBuilder) SetRfcommServiceName added in v0.0.7

func (m *SocketSettingsBuilder) SetRfcommServiceName(arg0 string) (*jni.Object, error)

SetRfcommServiceName calls android.bluetooth.BluetoothSocketSettings$Builder.setRfcommServiceName.

func (*SocketSettingsBuilder) SetRfcommUuid added in v0.0.7

func (m *SocketSettingsBuilder) SetRfcommUuid(arg0 *jni.Object) (*jni.Object, error)

SetRfcommUuid calls android.bluetooth.BluetoothSocketSettings$Builder.setRfcommUuid.

func (*SocketSettingsBuilder) SetSocketType added in v0.0.7

func (m *SocketSettingsBuilder) SetSocketType(arg0 int32) (*jni.Object, error)

SetSocketType calls android.bluetooth.BluetoothSocketSettings$Builder.setSocketType.

Directories

Path Synopsis
le
Package le provides Go bindings for android.bluetooth.le.
Package le provides Go bindings for android.bluetooth.le.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL