consts

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ActionAclConnected           string = "android.bluetooth.device.action.ACL_CONNECTED"
	ActionAclDisconnected        string = "android.bluetooth.device.action.ACL_DISCONNECTED"
	ActionAclDisconnectRequested string = "android.bluetooth.device.action.ACL_DISCONNECT_REQUESTED"
	ActionAliasChanged           string = "android.bluetooth.device.action.ALIAS_CHANGED"
	ActionBondStateChanged       string = "android.bluetooth.device.action.BOND_STATE_CHANGED"
	ActionClassChanged           string = "android.bluetooth.device.action.CLASS_CHANGED"
	ActionEncryptionChange       string = "android.bluetooth.device.action.ENCRYPTION_CHANGE"
	ActionFound                  string = "android.bluetooth.device.action.FOUND"
	ActionKeyMissing             string = "android.bluetooth.device.action.KEY_MISSING"
	ActionNameChanged            string = "android.bluetooth.device.action.NAME_CHANGED"
	ActionPairingRequest         string = "android.bluetooth.device.action.PAIRING_REQUEST"
	ActionUuid                   string = "android.bluetooth.device.action.UUID"
	ExtraBondState               string = "android.bluetooth.device.extra.BOND_STATE"
	ExtraClass                   string = "android.bluetooth.device.extra.CLASS"
	ExtraDevice                  string = "android.bluetooth.device.extra.DEVICE"
	ExtraEncryptionAlgorithm     string = "android.bluetooth.device.extra.EXTRA_ENCRYPTION_ALGORITHM"
	ExtraEncryptionEnabled       string = "android.bluetooth.device.extra.ENCRYPTION_ENABLED"
	ExtraEncryptionStatus        string = "android.bluetooth.device.extra.ENCRYPTION_STATUS"
	ExtraIsCoordinatedSetMember  string = "android.bluetooth.extra.IS_COORDINATED_SET_MEMBER"
	ExtraKeySize                 string = "android.bluetooth.device.extra.KEY_SIZE"
	ExtraName                    string = "android.bluetooth.device.extra.NAME"
	ExtraPairingKey              string = "android.bluetooth.device.extra.PAIRING_KEY"
	ExtraPairingVariant          string = "android.bluetooth.device.extra.PAIRING_VARIANT"
	ExtraPreviousBondState       string = "android.bluetooth.device.extra.PREVIOUS_BOND_STATE"
	ExtraRssi                    string = "android.bluetooth.device.extra.RSSI"
	ExtraTransport               string = "android.bluetooth.device.extra.TRANSPORT"
	ExtraUuid                    string = "android.bluetooth.device.extra.UUID"
	ActionConnectionStateChanged string = "android.bluetooth.adapter.action.CONNECTION_STATE_CHANGED"
	ActionDiscoveryFinished      string = "android.bluetooth.adapter.action.DISCOVERY_FINISHED"
	ActionDiscoveryStarted       string = "android.bluetooth.adapter.action.DISCOVERY_STARTED"
	ActionLocalNameChanged       string = "android.bluetooth.adapter.action.LOCAL_NAME_CHANGED"
	ActionRequestDiscoverable    string = "android.bluetooth.adapter.action.REQUEST_DISCOVERABLE"
	ActionRequestEnable          string = "android.bluetooth.adapter.action.REQUEST_ENABLE"
	ActionScanModeChanged        string = "android.bluetooth.adapter.action.SCAN_MODE_CHANGED"
	ActionStateChanged           string = "android.bluetooth.adapter.action.STATE_CHANGED"
	ExtraConnectionState         string = "android.bluetooth.adapter.extra.CONNECTION_STATE"
	ExtraDiscoverableDuration    string = "android.bluetooth.adapter.extra.DISCOVERABLE_DURATION"
	ExtraLocalName               string = "android.bluetooth.adapter.extra.LOCAL_NAME"
	ExtraPreviousConnectionState string = "android.bluetooth.adapter.extra.PREVIOUS_CONNECTION_STATE"
	ExtraPreviousScanMode        string = "android.bluetooth.adapter.extra.PREVIOUS_SCAN_MODE"
	ExtraPreviousState           string = "android.bluetooth.adapter.extra.PREVIOUS_STATE"
	ExtraScanMode                string = "android.bluetooth.adapter.extra.SCAN_MODE"
	ExtraState                   string = "android.bluetooth.adapter.extra.STATE"
)
View Source
const (
	AddressTypeAnonymous              int = 255
	AddressTypePublic                 int = 0
	AddressTypeRandom                 int = 1
	AddressTypeUnknown                int = 65535
	BondBonded                        int = 12
	BondBonding                       int = 11
	BondNone                          int = 10
	Creator                           int = 0
	DeviceTypeClassic                 int = 1
	DeviceTypeDual                    int = 3
	DeviceTypeLe                      int = 2
	DeviceTypeUnknown                 int = 0
	EncryptionAlgorithmAes            int = 2
	EncryptionAlgorithmE0             int = 1
	EncryptionAlgorithmNone           int = 0
	Error                             int = -2147483648
	PairingVariantPasskeyConfirmation int = 2
	PairingVariantPin                 int = 0
	PhyLe1m                           int = 1
	PhyLe1mMask                       int = 1
	PhyLe2m                           int = 2
	PhyLe2mMask                       int = 2
	PhyLeCoded                        int = 3
	PhyLeCodedMask                    int = 4
	PhyOptionNoPreferred              int = 0
	PhyOptionS2                       int = 1
	PhyOptionS8                       int = 2
	TransportAuto                     int = 0
	TransportBredr                    int = 1
	TransportLe                       int = 2
	FormatFloat                       int = 52
	FormatSfloat                      int = 50
	FormatSint16                      int = 34
	FormatSint32                      int = 36
	FormatSint8                       int = 33
	FormatUint16                      int = 18
	FormatUint32                      int = 20
	FormatUint8                       int = 17
	PermissionRead                    int = 1
	PermissionReadEncrypted           int = 2
	PermissionReadEncryptedMitm       int = 4
	PermissionWrite                   int = 16
	PermissionWriteEncrypted          int = 32
	PermissionWriteEncryptedMitm      int = 64
	PermissionWriteSigned             int = 128
	PermissionWriteSignedMitm         int = 256
	PropertyBroadcast                 int = 1
	PropertyExtendedProps             int = 128
	PropertyIndicate                  int = 32
	PropertyNotify                    int = 16
	PropertyRead                      int = 2
	PropertySignedWrite               int = 64
	PropertyWrite                     int = 8
	PropertyWriteNoResponse           int = 4
	WriteTypeDefault                  int = 2
	WriteTypeNoResponse               int = 1
	WriteTypeSigned                   int = 4
	ServiceTypePrimary                int = 0
	ServiceTypeSecondary              int = 1
	DisableNotificationValue          int = 0
	EnableIndicationValue             int = 0
	EnableNotificationValue           int = 0
	TypeL2cap                         int = 3
	TypeLe                            int = 4
	TypeRfcomm                        int = 1
	TypeSco                           int = 2
	ConnectionPriorityBalanced        int = 0
	ConnectionPriorityDck             int = 3
	ConnectionPriorityHigh            int = 1
	ConnectionPriorityLowPower        int = 2
	GattConnectionCongested           int = 143
	GattConnectionTimeout             int = 147
	GattFailure                       int = 257
	GattInsufficientAuthentication    int = 5
	GattInsufficientAuthorization     int = 8
	GattInsufficientEncryption        int = 15
	GattInvalidAttributeLength        int = 13
	GattInvalidOffset                 int = 7
	GattReadNotPermitted              int = 2
	GattRequestNotSupported           int = 6
	GattSuccess                       int = 0
	GattWriteNotPermitted             int = 3
	ScanModeConnectable               int = 21
	ScanModeConnectableDiscoverable   int = 23
	ScanModeNone                      int = 20
	StateConnected                    int = 2
	StateConnecting                   int = 1
	StateDisconnected                 int = 0
	StateDisconnecting                int = 3
	StateOff                          int = 10
	StateOn                           int = 12
	StateTurningOff                   int = 13
	StateTurningOn                    int = 11
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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