Versions in this module Expand all Collapse all v0 v0.0.7 Mar 28, 2026 v0.0.6 Mar 22, 2026 v0.0.5 Mar 22, 2026 Changes in this version + const DescriptorIAssociationRequestCallback + const DescriptorICompanionDeviceDiscoveryService + const DescriptorICompanionDeviceManager + const DescriptorICompanionDeviceService + const DescriptorIOnAssociationsChangedListener + const DescriptorIOnMessageReceivedListener + const DescriptorIOnTransportsChangedListener + const DescriptorISystemDataTransferCallback + const MethodIAssociationRequestCallbackOnAssociationCreated + const MethodIAssociationRequestCallbackOnAssociationPending + const MethodIAssociationRequestCallbackOnFailure + const MethodICompanionDeviceDiscoveryServiceOnAssociationCreated + const MethodICompanionDeviceDiscoveryServiceStartDiscovery + const MethodICompanionDeviceManagerAddOnAssociationsChangedListener + const MethodICompanionDeviceManagerAddOnMessageReceivedListener + const MethodICompanionDeviceManagerAddOnTransportsChangedListener + const MethodICompanionDeviceManagerApplyRestoredPayload + const MethodICompanionDeviceManagerAssociate + const MethodICompanionDeviceManagerAttachSystemDataTransport + const MethodICompanionDeviceManagerBuildAssociationCancellationIntent + const MethodICompanionDeviceManagerBuildPermissionTransferUserConsentIntent + const MethodICompanionDeviceManagerCanPairWithoutPrompt + const MethodICompanionDeviceManagerClearAssociationTag + const MethodICompanionDeviceManagerCreateAssociation + const MethodICompanionDeviceManagerDetachSystemDataTransport + const MethodICompanionDeviceManagerDisablePermissionsSync + const MethodICompanionDeviceManagerDisableSystemDataSync + const MethodICompanionDeviceManagerDisassociate + const MethodICompanionDeviceManagerEnablePermissionsSync + const MethodICompanionDeviceManagerEnableSecureTransport + const MethodICompanionDeviceManagerEnableSystemDataSync + const MethodICompanionDeviceManagerGetAllAssociationsForUser + const MethodICompanionDeviceManagerGetAssociations + const MethodICompanionDeviceManagerGetBackupPayload + const MethodICompanionDeviceManagerGetPermissionSyncRequest + const MethodICompanionDeviceManagerHasNotificationAccess + const MethodICompanionDeviceManagerIsCompanionApplicationBound + const MethodICompanionDeviceManagerIsDeviceAssociatedForWifiConnection + const MethodICompanionDeviceManagerIsPermissionTransferUserConsented + const MethodICompanionDeviceManagerLegacyDisassociate + const MethodICompanionDeviceManagerNotifyDeviceAppeared + const MethodICompanionDeviceManagerNotifyDeviceDisappeared + const MethodICompanionDeviceManagerRegisterDevicePresenceListenerService + const MethodICompanionDeviceManagerRemoveOnAssociationsChangedListener + const MethodICompanionDeviceManagerRemoveOnMessageReceivedListener + const MethodICompanionDeviceManagerRemoveOnTransportsChangedListener + const MethodICompanionDeviceManagerRequestNotificationAccess + const MethodICompanionDeviceManagerSendMessage + const MethodICompanionDeviceManagerSetAssociationTag + const MethodICompanionDeviceManagerStartObservingDevicePresence + const MethodICompanionDeviceManagerStartSystemDataTransfer + const MethodICompanionDeviceManagerStopObservingDevicePresence + const MethodICompanionDeviceManagerUnregisterDevicePresenceListenerService + const MethodICompanionDeviceServiceOnDeviceAppeared + const MethodICompanionDeviceServiceOnDeviceDisappeared + const MethodICompanionDeviceServiceOnDevicePresenceEvent + const MethodIOnAssociationsChangedListenerOnAssociationsChanged + const MethodIOnMessageReceivedListenerOnMessageReceived + const MethodIOnTransportsChangedListenerOnTransportsChanged + const MethodISystemDataTransferCallbackOnError + const MethodISystemDataTransferCallbackOnResult + const TransactionIAssociationRequestCallbackOnAssociationCreated + const TransactionIAssociationRequestCallbackOnAssociationPending + const TransactionIAssociationRequestCallbackOnFailure + const TransactionICompanionDeviceDiscoveryServiceOnAssociationCreated + const TransactionICompanionDeviceDiscoveryServiceStartDiscovery + const TransactionICompanionDeviceManagerAddOnAssociationsChangedListener + const TransactionICompanionDeviceManagerAddOnMessageReceivedListener + const TransactionICompanionDeviceManagerAddOnTransportsChangedListener + const TransactionICompanionDeviceManagerApplyRestoredPayload + const TransactionICompanionDeviceManagerAssociate + const TransactionICompanionDeviceManagerAttachSystemDataTransport + const TransactionICompanionDeviceManagerBuildAssociationCancellationIntent + const TransactionICompanionDeviceManagerBuildPermissionTransferUserConsentIntent + const TransactionICompanionDeviceManagerCanPairWithoutPrompt + const TransactionICompanionDeviceManagerClearAssociationTag + const TransactionICompanionDeviceManagerCreateAssociation + const TransactionICompanionDeviceManagerDetachSystemDataTransport + const TransactionICompanionDeviceManagerDisablePermissionsSync + const TransactionICompanionDeviceManagerDisableSystemDataSync + const TransactionICompanionDeviceManagerDisassociate + const TransactionICompanionDeviceManagerEnablePermissionsSync + const TransactionICompanionDeviceManagerEnableSecureTransport + const TransactionICompanionDeviceManagerEnableSystemDataSync + const TransactionICompanionDeviceManagerGetAllAssociationsForUser + const TransactionICompanionDeviceManagerGetAssociations + const TransactionICompanionDeviceManagerGetBackupPayload + const TransactionICompanionDeviceManagerGetPermissionSyncRequest + const TransactionICompanionDeviceManagerHasNotificationAccess + const TransactionICompanionDeviceManagerIsCompanionApplicationBound + const TransactionICompanionDeviceManagerIsDeviceAssociatedForWifiConnection + const TransactionICompanionDeviceManagerIsPermissionTransferUserConsented + const TransactionICompanionDeviceManagerLegacyDisassociate + const TransactionICompanionDeviceManagerNotifyDeviceAppeared + const TransactionICompanionDeviceManagerNotifyDeviceDisappeared + const TransactionICompanionDeviceManagerRegisterDevicePresenceListenerService + const TransactionICompanionDeviceManagerRemoveOnAssociationsChangedListener + const TransactionICompanionDeviceManagerRemoveOnMessageReceivedListener + const TransactionICompanionDeviceManagerRemoveOnTransportsChangedListener + const TransactionICompanionDeviceManagerRequestNotificationAccess + const TransactionICompanionDeviceManagerSendMessage + const TransactionICompanionDeviceManagerSetAssociationTag + const TransactionICompanionDeviceManagerStartObservingDevicePresence + const TransactionICompanionDeviceManagerStartSystemDataTransfer + const TransactionICompanionDeviceManagerStopObservingDevicePresence + const TransactionICompanionDeviceManagerUnregisterDevicePresenceListenerService + const TransactionICompanionDeviceServiceOnDeviceAppeared + const TransactionICompanionDeviceServiceOnDeviceDisappeared + const TransactionICompanionDeviceServiceOnDevicePresenceEvent + const TransactionIOnAssociationsChangedListenerOnAssociationsChanged + const TransactionIOnMessageReceivedListenerOnMessageReceived + const TransactionIOnTransportsChangedListenerOnTransportsChanged + const TransactionISystemDataTransferCallbackOnError + const TransactionISystemDataTransferCallbackOnResult + type AssociationInfo struct + DeviceProfile string + Id int32 + LastTimeConnectedMs int64 + NotifyOnDeviceNearby bool + PackageName string + Pending bool + Revoked bool + SelfManaged bool + SystemDataSyncFlags int32 + Tag string + TimeApprovedMs int64 + UserId int32 + func (s *AssociationInfo) MarshalParcel(p *parcel.Parcel) error + func (s *AssociationInfo) UnmarshalParcel(p *parcel.Parcel) error + type AssociationRequest struct + CreationTime int64 + Flg int32 + UserId int32 + func (s *AssociationRequest) MarshalParcel(p *parcel.Parcel) error + func (s *AssociationRequest) UnmarshalParcel(p *parcel.Parcel) error + type AssociationRequestCallbackProxy struct + Remote binder.IBinder + func NewAssociationRequestCallbackProxy(remote binder.IBinder) *AssociationRequestCallbackProxy + func (p *AssociationRequestCallbackProxy) AsBinder() binder.IBinder + func (p *AssociationRequestCallbackProxy) OnAssociationCreated(ctx context.Context, associationInfo AssociationInfo) error + func (p *AssociationRequestCallbackProxy) OnAssociationPending(ctx context.Context, pendingIntent app.PendingIntent) error + func (p *AssociationRequestCallbackProxy) OnFailure(ctx context.Context, error_ string) error + type AssociationRequestCallbackStub struct + Impl IAssociationRequestCallback + Transport binder.VersionAwareTransport + func (s *AssociationRequestCallbackStub) Descriptor() string + func (s *AssociationRequestCallbackStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error) + type BluetoothLEDeviceFilter struct + func (s *BluetoothLEDeviceFilter) MarshalParcel(p *parcel.Parcel) error + func (s *BluetoothLEDeviceFilter) UnmarshalParcel(p *parcel.Parcel) error + type CompanionDeviceDiscoveryServiceProxy struct + Remote binder.IBinder + func NewCompanionDeviceDiscoveryServiceProxy(remote binder.IBinder) *CompanionDeviceDiscoveryServiceProxy + func (p *CompanionDeviceDiscoveryServiceProxy) AsBinder() binder.IBinder + func (p *CompanionDeviceDiscoveryServiceProxy) OnAssociationCreated(ctx context.Context) error + func (p *CompanionDeviceDiscoveryServiceProxy) StartDiscovery(ctx context.Context, request AssociationRequest, ...) error + type CompanionDeviceDiscoveryServiceStub struct + Impl ICompanionDeviceDiscoveryService + Transport binder.VersionAwareTransport + func (s *CompanionDeviceDiscoveryServiceStub) Descriptor() string + func (s *CompanionDeviceDiscoveryServiceStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error) + type CompanionDeviceManagerProxy struct + Remote binder.IBinder + func GetCompanionDeviceManager(ctx context.Context, sm *servicemanager.ServiceManager) (*CompanionDeviceManagerProxy, error) + func NewCompanionDeviceManagerProxy(remote binder.IBinder) *CompanionDeviceManagerProxy + func (p *CompanionDeviceManagerProxy) AddOnAssociationsChangedListener(ctx context.Context, listener IOnAssociationsChangedListener) error + func (p *CompanionDeviceManagerProxy) AddOnMessageReceivedListener(ctx context.Context, messageType int32, listener IOnMessageReceivedListener) error + func (p *CompanionDeviceManagerProxy) AddOnTransportsChangedListener(ctx context.Context, listener IOnTransportsChangedListener) error + func (p *CompanionDeviceManagerProxy) ApplyRestoredPayload(ctx context.Context, payload []byte) error + func (p *CompanionDeviceManagerProxy) AsBinder() binder.IBinder + func (p *CompanionDeviceManagerProxy) Associate(ctx context.Context, request AssociationRequest, ...) error + func (p *CompanionDeviceManagerProxy) AttachSystemDataTransport(ctx context.Context, packageName string, associationId int32, fd int32) error + func (p *CompanionDeviceManagerProxy) BuildAssociationCancellationIntent(ctx context.Context) (app.PendingIntent, error) + func (p *CompanionDeviceManagerProxy) BuildPermissionTransferUserConsentIntent(ctx context.Context, associationId int32) (app.PendingIntent, error) + func (p *CompanionDeviceManagerProxy) CanPairWithoutPrompt(ctx context.Context, packageName string, deviceMacAddress string) (bool, error) + func (p *CompanionDeviceManagerProxy) ClearAssociationTag(ctx context.Context, associationId int32) error + func (p *CompanionDeviceManagerProxy) CreateAssociation(ctx context.Context, packageName string, macAddress string, certificate []byte) error + func (p *CompanionDeviceManagerProxy) DetachSystemDataTransport(ctx context.Context, packageName string, associationId int32) error + func (p *CompanionDeviceManagerProxy) DisablePermissionsSync(ctx context.Context, associationId int32) error + func (p *CompanionDeviceManagerProxy) DisableSystemDataSync(ctx context.Context, associationId int32, flags int32) error + func (p *CompanionDeviceManagerProxy) Disassociate(ctx context.Context, associationId int32) error + func (p *CompanionDeviceManagerProxy) EnablePermissionsSync(ctx context.Context, associationId int32) error + func (p *CompanionDeviceManagerProxy) EnableSecureTransport(ctx context.Context, enabled bool) error + func (p *CompanionDeviceManagerProxy) EnableSystemDataSync(ctx context.Context, associationId int32, flags int32) error + func (p *CompanionDeviceManagerProxy) GetAllAssociationsForUser(ctx context.Context) ([]AssociationInfo, error) + func (p *CompanionDeviceManagerProxy) GetAssociations(ctx context.Context) ([]AssociationInfo, error) + func (p *CompanionDeviceManagerProxy) GetBackupPayload(ctx context.Context) ([]byte, error) + func (p *CompanionDeviceManagerProxy) GetPermissionSyncRequest(ctx context.Context, associationId int32) (datatransfer.PermissionSyncRequest, error) + func (p *CompanionDeviceManagerProxy) HasNotificationAccess(ctx context.Context, component content.ComponentName) (bool, error) + func (p *CompanionDeviceManagerProxy) IsCompanionApplicationBound(ctx context.Context, packageName string) (bool, error) + func (p *CompanionDeviceManagerProxy) IsDeviceAssociatedForWifiConnection(ctx context.Context, packageName string, macAddress string) (bool, error) + func (p *CompanionDeviceManagerProxy) IsPermissionTransferUserConsented(ctx context.Context, associationId int32) (bool, error) + func (p *CompanionDeviceManagerProxy) LegacyDisassociate(ctx context.Context, deviceMacAddress string) error + func (p *CompanionDeviceManagerProxy) NotifyDeviceAppeared(ctx context.Context, associationId int32) error + func (p *CompanionDeviceManagerProxy) NotifyDeviceDisappeared(ctx context.Context, associationId int32) error + func (p *CompanionDeviceManagerProxy) RegisterDevicePresenceListenerService(ctx context.Context, deviceAddress string) error + func (p *CompanionDeviceManagerProxy) RemoveOnAssociationsChangedListener(ctx context.Context, listener IOnAssociationsChangedListener) error + func (p *CompanionDeviceManagerProxy) RemoveOnMessageReceivedListener(ctx context.Context, messageType int32, listener IOnMessageReceivedListener) error + func (p *CompanionDeviceManagerProxy) RemoveOnTransportsChangedListener(ctx context.Context, listener IOnTransportsChangedListener) error + func (p *CompanionDeviceManagerProxy) RequestNotificationAccess(ctx context.Context, component content.ComponentName) (app.PendingIntent, error) + func (p *CompanionDeviceManagerProxy) SendMessage(ctx context.Context, messageType int32, data []byte, associationIds []int32) error + func (p *CompanionDeviceManagerProxy) SetAssociationTag(ctx context.Context, associationId int32, tag string) error + func (p *CompanionDeviceManagerProxy) StartObservingDevicePresence(ctx context.Context, request ObservingDevicePresenceRequest, ...) error + func (p *CompanionDeviceManagerProxy) StartSystemDataTransfer(ctx context.Context, packageName string, associationId int32, ...) error + func (p *CompanionDeviceManagerProxy) StopObservingDevicePresence(ctx context.Context, request ObservingDevicePresenceRequest, ...) error + func (p *CompanionDeviceManagerProxy) UnregisterDevicePresenceListenerService(ctx context.Context, deviceAddress string) error + type CompanionDeviceManagerStub struct + Impl ICompanionDeviceManager + Transport binder.VersionAwareTransport + func (s *CompanionDeviceManagerStub) Descriptor() string + func (s *CompanionDeviceManagerStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error) + type CompanionDeviceServiceProxy struct + Remote binder.IBinder + func NewCompanionDeviceServiceProxy(remote binder.IBinder) *CompanionDeviceServiceProxy + func (p *CompanionDeviceServiceProxy) AsBinder() binder.IBinder + func (p *CompanionDeviceServiceProxy) OnDeviceAppeared(ctx context.Context, associationInfo AssociationInfo) error + func (p *CompanionDeviceServiceProxy) OnDeviceDisappeared(ctx context.Context, associationInfo AssociationInfo) error + func (p *CompanionDeviceServiceProxy) OnDevicePresenceEvent(ctx context.Context, event DevicePresenceEvent) error + type CompanionDeviceServiceStub struct + Impl ICompanionDeviceService + Transport binder.VersionAwareTransport + func (s *CompanionDeviceServiceStub) Descriptor() string + func (s *CompanionDeviceServiceStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error) + type DevicePresenceEvent struct + AssociationId int32 + Event int32 + func (s *DevicePresenceEvent) MarshalParcel(p *parcel.Parcel) error + func (s *DevicePresenceEvent) UnmarshalParcel(p *parcel.Parcel) error + type IAssociationRequestCallback interface + AsBinder func() binder.IBinder + OnAssociationCreated func(ctx context.Context, associationInfo AssociationInfo) error + OnAssociationPending func(ctx context.Context, pendingIntent app.PendingIntent) error + OnFailure func(ctx context.Context, error_ string) error + func NewAssociationRequestCallbackStub(impl IAssociationRequestCallbackServer) IAssociationRequestCallback + type IAssociationRequestCallbackServer interface + OnAssociationCreated func(ctx context.Context, associationInfo AssociationInfo) error + OnAssociationPending func(ctx context.Context, pendingIntent app.PendingIntent) error + OnFailure func(ctx context.Context, error_ string) error + type ICompanionDeviceDiscoveryService interface + AsBinder func() binder.IBinder + OnAssociationCreated func(ctx context.Context) error + StartDiscovery func(ctx context.Context, request AssociationRequest, ...) error + func NewCompanionDeviceDiscoveryServiceStub(impl ICompanionDeviceDiscoveryServiceServer) ICompanionDeviceDiscoveryService + type ICompanionDeviceDiscoveryServiceServer interface + OnAssociationCreated func(ctx context.Context) error + StartDiscovery func(ctx context.Context, request AssociationRequest, ...) error + type ICompanionDeviceManager interface + AddOnAssociationsChangedListener func(ctx context.Context, listener IOnAssociationsChangedListener) error + AddOnMessageReceivedListener func(ctx context.Context, messageType int32, listener IOnMessageReceivedListener) error + AddOnTransportsChangedListener func(ctx context.Context, listener IOnTransportsChangedListener) error + ApplyRestoredPayload func(ctx context.Context, payload []byte) error + AsBinder func() binder.IBinder + Associate func(ctx context.Context, request AssociationRequest, ...) error + AttachSystemDataTransport func(ctx context.Context, packageName string, associationId int32, fd int32) error + BuildAssociationCancellationIntent func(ctx context.Context) (app.PendingIntent, error) + BuildPermissionTransferUserConsentIntent func(ctx context.Context, associationId int32) (app.PendingIntent, error) + CanPairWithoutPrompt func(ctx context.Context, packageName string, deviceMacAddress string) (bool, error) + ClearAssociationTag func(ctx context.Context, associationId int32) error + CreateAssociation func(ctx context.Context, packageName string, macAddress string, certificate []byte) error + DetachSystemDataTransport func(ctx context.Context, packageName string, associationId int32) error + DisablePermissionsSync func(ctx context.Context, associationId int32) error + DisableSystemDataSync func(ctx context.Context, associationId int32, flags int32) error + Disassociate func(ctx context.Context, associationId int32) error + EnablePermissionsSync func(ctx context.Context, associationId int32) error + EnableSecureTransport func(ctx context.Context, enabled bool) error + EnableSystemDataSync func(ctx context.Context, associationId int32, flags int32) error + GetAllAssociationsForUser func(ctx context.Context) ([]AssociationInfo, error) + GetAssociations func(ctx context.Context) ([]AssociationInfo, error) + GetBackupPayload func(ctx context.Context) ([]byte, error) + GetPermissionSyncRequest func(ctx context.Context, associationId int32) (datatransfer.PermissionSyncRequest, error) + HasNotificationAccess func(ctx context.Context, component content.ComponentName) (bool, error) + IsCompanionApplicationBound func(ctx context.Context, packageName string) (bool, error) + IsDeviceAssociatedForWifiConnection func(ctx context.Context, packageName string, macAddress string) (bool, error) + IsPermissionTransferUserConsented func(ctx context.Context, associationId int32) (bool, error) + LegacyDisassociate func(ctx context.Context, deviceMacAddress string) error + NotifyDeviceAppeared func(ctx context.Context, associationId int32) error + NotifyDeviceDisappeared func(ctx context.Context, associationId int32) error + RegisterDevicePresenceListenerService func(ctx context.Context, deviceAddress string) error + RemoveOnAssociationsChangedListener func(ctx context.Context, listener IOnAssociationsChangedListener) error + RemoveOnMessageReceivedListener func(ctx context.Context, messageType int32, listener IOnMessageReceivedListener) error + RemoveOnTransportsChangedListener func(ctx context.Context, listener IOnTransportsChangedListener) error + RequestNotificationAccess func(ctx context.Context, component content.ComponentName) (app.PendingIntent, error) + SendMessage func(ctx context.Context, messageType int32, data []byte, associationIds []int32) error + SetAssociationTag func(ctx context.Context, associationId int32, tag string) error + StartObservingDevicePresence func(ctx context.Context, request ObservingDevicePresenceRequest, ...) error + StartSystemDataTransfer func(ctx context.Context, packageName string, associationId int32, ...) error + StopObservingDevicePresence func(ctx context.Context, request ObservingDevicePresenceRequest, ...) error + UnregisterDevicePresenceListenerService func(ctx context.Context, deviceAddress string) error + func NewCompanionDeviceManagerStub(impl ICompanionDeviceManagerServer) ICompanionDeviceManager + type ICompanionDeviceManagerServer interface + AddOnAssociationsChangedListener func(ctx context.Context, listener IOnAssociationsChangedListener) error + AddOnMessageReceivedListener func(ctx context.Context, messageType int32, listener IOnMessageReceivedListener) error + AddOnTransportsChangedListener func(ctx context.Context, listener IOnTransportsChangedListener) error + ApplyRestoredPayload func(ctx context.Context, payload []byte) error + Associate func(ctx context.Context, request AssociationRequest, ...) error + AttachSystemDataTransport func(ctx context.Context, packageName string, associationId int32, fd int32) error + BuildAssociationCancellationIntent func(ctx context.Context) (app.PendingIntent, error) + BuildPermissionTransferUserConsentIntent func(ctx context.Context, associationId int32) (app.PendingIntent, error) + CanPairWithoutPrompt func(ctx context.Context, packageName string, deviceMacAddress string) (bool, error) + ClearAssociationTag func(ctx context.Context, associationId int32) error + CreateAssociation func(ctx context.Context, packageName string, macAddress string, certificate []byte) error + DetachSystemDataTransport func(ctx context.Context, packageName string, associationId int32) error + DisablePermissionsSync func(ctx context.Context, associationId int32) error + DisableSystemDataSync func(ctx context.Context, associationId int32, flags int32) error + Disassociate func(ctx context.Context, associationId int32) error + EnablePermissionsSync func(ctx context.Context, associationId int32) error + EnableSecureTransport func(ctx context.Context, enabled bool) error + EnableSystemDataSync func(ctx context.Context, associationId int32, flags int32) error + GetAllAssociationsForUser func(ctx context.Context) ([]AssociationInfo, error) + GetAssociations func(ctx context.Context) ([]AssociationInfo, error) + GetBackupPayload func(ctx context.Context) ([]byte, error) + GetPermissionSyncRequest func(ctx context.Context, associationId int32) (datatransfer.PermissionSyncRequest, error) + HasNotificationAccess func(ctx context.Context, component content.ComponentName) (bool, error) + IsCompanionApplicationBound func(ctx context.Context, packageName string) (bool, error) + IsDeviceAssociatedForWifiConnection func(ctx context.Context, packageName string, macAddress string) (bool, error) + IsPermissionTransferUserConsented func(ctx context.Context, associationId int32) (bool, error) + LegacyDisassociate func(ctx context.Context, deviceMacAddress string) error + NotifyDeviceAppeared func(ctx context.Context, associationId int32) error + NotifyDeviceDisappeared func(ctx context.Context, associationId int32) error + RegisterDevicePresenceListenerService func(ctx context.Context, deviceAddress string) error + RemoveOnAssociationsChangedListener func(ctx context.Context, listener IOnAssociationsChangedListener) error + RemoveOnMessageReceivedListener func(ctx context.Context, messageType int32, listener IOnMessageReceivedListener) error + RemoveOnTransportsChangedListener func(ctx context.Context, listener IOnTransportsChangedListener) error + RequestNotificationAccess func(ctx context.Context, component content.ComponentName) (app.PendingIntent, error) + SendMessage func(ctx context.Context, messageType int32, data []byte, associationIds []int32) error + SetAssociationTag func(ctx context.Context, associationId int32, tag string) error + StartObservingDevicePresence func(ctx context.Context, request ObservingDevicePresenceRequest, ...) error + StartSystemDataTransfer func(ctx context.Context, packageName string, associationId int32, ...) error + StopObservingDevicePresence func(ctx context.Context, request ObservingDevicePresenceRequest, ...) error + UnregisterDevicePresenceListenerService func(ctx context.Context, deviceAddress string) error + type ICompanionDeviceService interface + AsBinder func() binder.IBinder + OnDeviceAppeared func(ctx context.Context, associationInfo AssociationInfo) error + OnDeviceDisappeared func(ctx context.Context, associationInfo AssociationInfo) error + OnDevicePresenceEvent func(ctx context.Context, event DevicePresenceEvent) error + func NewCompanionDeviceServiceStub(impl ICompanionDeviceServiceServer) ICompanionDeviceService + type ICompanionDeviceServiceServer interface + OnDeviceAppeared func(ctx context.Context, associationInfo AssociationInfo) error + OnDeviceDisappeared func(ctx context.Context, associationInfo AssociationInfo) error + OnDevicePresenceEvent func(ctx context.Context, event DevicePresenceEvent) error + type IOnAssociationsChangedListener interface + AsBinder func() binder.IBinder + OnAssociationsChanged func(ctx context.Context, associations []AssociationInfo) error + func NewOnAssociationsChangedListenerStub(impl IOnAssociationsChangedListenerServer) IOnAssociationsChangedListener + type IOnAssociationsChangedListenerServer interface + OnAssociationsChanged func(ctx context.Context, associations []AssociationInfo) error + type IOnMessageReceivedListener interface + AsBinder func() binder.IBinder + OnMessageReceived func(ctx context.Context, associationId int32, data []byte) error + func NewOnMessageReceivedListenerStub(impl IOnMessageReceivedListenerServer) IOnMessageReceivedListener + type IOnMessageReceivedListenerServer interface + OnMessageReceived func(ctx context.Context, associationId int32, data []byte) error + type IOnTransportsChangedListener interface + AsBinder func() binder.IBinder + OnTransportsChanged func(ctx context.Context, associations []AssociationInfo) error + func NewOnTransportsChangedListenerStub(impl IOnTransportsChangedListenerServer) IOnTransportsChangedListener + type IOnTransportsChangedListenerServer interface + OnTransportsChanged func(ctx context.Context, associations []AssociationInfo) error + type ISystemDataTransferCallback interface + AsBinder func() binder.IBinder + OnError func(ctx context.Context, error_ string) error + OnResult func(ctx context.Context) error + func NewSystemDataTransferCallbackStub(impl ISystemDataTransferCallbackServer) ISystemDataTransferCallback + type ISystemDataTransferCallbackServer interface + OnError func(ctx context.Context, error_ string) error + OnResult func(ctx context.Context) error + type ObservingDevicePresenceRequest struct + AssociationId int32 + func (s *ObservingDevicePresenceRequest) MarshalParcel(p *parcel.Parcel) error + func (s *ObservingDevicePresenceRequest) UnmarshalParcel(p *parcel.Parcel) error + type OnAssociationsChangedListenerProxy struct + Remote binder.IBinder + func NewOnAssociationsChangedListenerProxy(remote binder.IBinder) *OnAssociationsChangedListenerProxy + func (p *OnAssociationsChangedListenerProxy) AsBinder() binder.IBinder + func (p *OnAssociationsChangedListenerProxy) OnAssociationsChanged(ctx context.Context, associations []AssociationInfo) error + type OnAssociationsChangedListenerStub struct + Impl IOnAssociationsChangedListener + Transport binder.VersionAwareTransport + func (s *OnAssociationsChangedListenerStub) Descriptor() string + func (s *OnAssociationsChangedListenerStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error) + type OnMessageReceivedListenerProxy struct + Remote binder.IBinder + func NewOnMessageReceivedListenerProxy(remote binder.IBinder) *OnMessageReceivedListenerProxy + func (p *OnMessageReceivedListenerProxy) AsBinder() binder.IBinder + func (p *OnMessageReceivedListenerProxy) OnMessageReceived(ctx context.Context, associationId int32, data []byte) error + type OnMessageReceivedListenerStub struct + Impl IOnMessageReceivedListener + Transport binder.VersionAwareTransport + func (s *OnMessageReceivedListenerStub) Descriptor() string + func (s *OnMessageReceivedListenerStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error) + type OnTransportsChangedListenerProxy struct + Remote binder.IBinder + func NewOnTransportsChangedListenerProxy(remote binder.IBinder) *OnTransportsChangedListenerProxy + func (p *OnTransportsChangedListenerProxy) AsBinder() binder.IBinder + func (p *OnTransportsChangedListenerProxy) OnTransportsChanged(ctx context.Context, associations []AssociationInfo) error + type OnTransportsChangedListenerStub struct + Impl IOnTransportsChangedListener + Transport binder.VersionAwareTransport + func (s *OnTransportsChangedListenerStub) Descriptor() string + func (s *OnTransportsChangedListenerStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error) + type SystemDataTransferCallbackProxy struct + Remote binder.IBinder + func NewSystemDataTransferCallbackProxy(remote binder.IBinder) *SystemDataTransferCallbackProxy + func (p *SystemDataTransferCallbackProxy) AsBinder() binder.IBinder + func (p *SystemDataTransferCallbackProxy) OnError(ctx context.Context, error_ string) error + func (p *SystemDataTransferCallbackProxy) OnResult(ctx context.Context) error + type SystemDataTransferCallbackStub struct + Impl ISystemDataTransferCallback + Transport binder.VersionAwareTransport + func (s *SystemDataTransferCallbackStub) Descriptor() string + func (s *SystemDataTransferCallbackStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)