forked from JuulLabs-OSS/cbgo
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathperipheralmanagerdelegate.go
More file actions
71 lines (57 loc) · 4.22 KB
/
peripheralmanagerdelegate.go
File metadata and controls
71 lines (57 loc) · 4.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package cbgo
// https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate
type PeripheralManagerDelegate interface {
// PeripheralManagerDidUpdateState: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate/1393271-peripheralmanagerdidupdatestate
PeripheralManagerDidUpdateState(pmgr PeripheralManager)
// PeripheralManagerWillRestoreState: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate/1393317-peripheralmanager
PeripheralManagerWillRestoreState(pmgr PeripheralManager, opts PeripheralManagerRestoreOpts)
// DidAddService: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate/1393279-peripheralmanager
DidAddService(pmgr PeripheralManager, svc Service, err error)
// DidStartAdvertising: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate/1393321-peripheralmanagerdidstartadverti
DidStartAdvertising(pmgr PeripheralManager, err error)
// CentralDidSubscribe: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate/1393261-peripheralmanager
CentralDidSubscribe(pmgr PeripheralManager, cent Central, chr Characteristic)
// CentralDidUnsubscribe: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate/1393289-peripheralmanager
CentralDidUnsubscribe(pmgr PeripheralManager, cent Central, chr Characteristic)
// IsReadyToUpdateSubscribers: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate/1393248-peripheralmanagerisreadytoupdate
IsReadyToUpdateSubscribers(pmgr PeripheralManager)
// DidReceiveReadRequest: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate/1393257-peripheralmanager
DidReceiveReadRequest(pmgr PeripheralManager, req ATTRequest)
// DidReceiveWriteRequests: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate/1393315-peripheralmanager
DidReceiveWriteRequests(pmgr PeripheralManager, reqs []ATTRequest)
// DidPublishL2CAPChannel: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate/2880171-peripheralmanager
DidPublishL2CAPChannel(pmgr PeripheralManager, psm uint16, err error)
// DidUnpublishL2CAPChannel: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate/2880170-peripheralmanager
DidUnpublishL2CAPChannel(pmgr PeripheralManager, psm uint16, err error)
// DidOpenL2CAPChannel: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanagerdelegate/2880172-peripheralmanager
DidOpenL2CAPChannel(pmgr PeripheralManager, channel L2CAPChannel, err error)
}
// PeripheralManagerDelegateBase implements the PeripheralManagerDelegate
// interface with stub functions. Embed this in your delegate type if you only
// want to define a subset of the PeripheralManagerDelegate interface.
type PeripheralManagerDelegateBase struct {
}
func (b *PeripheralManagerDelegateBase) PeripheralManagerDidUpdateState(pmgr PeripheralManager) {
}
func (b *PeripheralManagerDelegateBase) PeripheralManagerWillRestoreState(pmgr PeripheralManager, opts PeripheralManagerRestoreOpts) {
}
func (b *PeripheralManagerDelegateBase) DidAddService(pmgr PeripheralManager, svc Service, err error) {
}
func (b *PeripheralManagerDelegateBase) DidStartAdvertising(pmgr PeripheralManager, err error) {
}
func (b *PeripheralManagerDelegateBase) CentralDidSubscribe(pmgr PeripheralManager, cent Central, chr Characteristic) {
}
func (b *PeripheralManagerDelegateBase) CentralDidUnsubscribe(pmgr PeripheralManager, cent Central, chr Characteristic) {
}
func (b *PeripheralManagerDelegateBase) IsReadyToUpdateSubscribers(pmgr PeripheralManager) {
}
func (b *PeripheralManagerDelegateBase) DidReceiveReadRequest(pmgr PeripheralManager, req ATTRequest) {
}
func (b *PeripheralManagerDelegateBase) DidReceiveWriteRequests(pmgr PeripheralManager, reqs []ATTRequest) {
}
func (b *PeripheralManagerDelegateBase) DidPublishL2CAPChannel(pmgr PeripheralManager, psm uint16, err error) {
}
func (b *PeripheralManagerDelegateBase) DidUnpublishL2CAPChannel(pmgr PeripheralManager, psm uint16, err error) {
}
func (b *PeripheralManagerDelegateBase) DidOpenL2CAPChannel(pmgr PeripheralManager, channel L2CAPChannel, err error) {
}