Documentation
¶
Index ¶
- Constants
- type IPresenceListener
- type IPresenceListenerServer
- type IPresenceService
- type IPresenceServiceServer
- type PresCapInfo
- type PresCmdID
- type PresCmdStatus
- type PresPublishTriggerType
- type PresResInfo
- type PresResInstanceInfo
- type PresRlmiInfo
- type PresServiceInfo
- type PresSipResponse
- type PresSubscriptionState
- type PresTupleInfo
- type PresenceListenerProxy
- func (p *PresenceListenerProxy) AsBinder() binder.IBinder
- func (p *PresenceListenerProxy) CapInfoReceived(ctx context.Context, presentityURI string, tupleInfo []PresTupleInfo) error
- func (p *PresenceListenerProxy) CmdStatus(ctx context.Context, cmdStatus PresCmdStatus) error
- func (p *PresenceListenerProxy) GetVersionCb(ctx context.Context, version string) error
- func (p *PresenceListenerProxy) ListCapInfoReceived(ctx context.Context, rlmiInfo PresRlmiInfo, resInfo []PresResInfo) error
- func (p *PresenceListenerProxy) PublishTriggering(ctx context.Context, publishTrigger PresPublishTriggerType) error
- func (p *PresenceListenerProxy) ServiceAvailable(ctx context.Context, statusCode common.StatusCode) error
- func (p *PresenceListenerProxy) ServiceUnAvailable(ctx context.Context, statusCode common.StatusCode) error
- func (p *PresenceListenerProxy) SipResponseReceived(ctx context.Context, sipResponse PresSipResponse) error
- func (p *PresenceListenerProxy) UnpublishMessageSent(ctx context.Context) error
- type PresenceListenerStub
- type PresenceServiceProxy
- func (p *PresenceServiceProxy) AddListener(ctx context.Context, presenceServiceHdl int32, ...) (common.StatusCode, error)
- func (p *PresenceServiceProxy) AsBinder() binder.IBinder
- func (p *PresenceServiceProxy) GetContactCap(ctx context.Context, presenceServiceHdl int32, remoteUri string, ...) (common.StatusCode, error)
- func (p *PresenceServiceProxy) GetContactListCap(ctx context.Context, presenceServiceHdl int32, remoteUriList []string, ...) (common.StatusCode, error)
- func (p *PresenceServiceProxy) GetVersion(ctx context.Context, presenceServiceHdl int32) (common.StatusCode, error)
- func (p *PresenceServiceProxy) PublishMyCap(ctx context.Context, presenceServiceHdl int32, myCapInfo PresCapInfo, ...) (common.StatusCode, error)
- func (p *PresenceServiceProxy) ReenableService(ctx context.Context, presenceServiceHdl int32, userData int32) (common.StatusCode, error)
- func (p *PresenceServiceProxy) RemoveListener(ctx context.Context, presenceServiceHdl int32, ...) (common.StatusCode, error)
- func (p *PresenceServiceProxy) SetNewFeatureTag(ctx context.Context, presenceServiceHdl int32, featureTag string, ...) (common.StatusCode, error)
- type PresenceServiceStub
Constants ¶
const ( TransactionIPresenceListenerGetVersionCb = binder.FirstCallTransaction + 0 TransactionIPresenceListenerServiceAvailable = binder.FirstCallTransaction + 1 TransactionIPresenceListenerServiceUnAvailable = binder.FirstCallTransaction + 2 TransactionIPresenceListenerPublishTriggering = binder.FirstCallTransaction + 3 TransactionIPresenceListenerCmdStatus = binder.FirstCallTransaction + 4 TransactionIPresenceListenerSipResponseReceived = binder.FirstCallTransaction + 5 TransactionIPresenceListenerCapInfoReceived = binder.FirstCallTransaction + 6 TransactionIPresenceListenerListCapInfoReceived = binder.FirstCallTransaction + 7 TransactionIPresenceListenerUnpublishMessageSent = binder.FirstCallTransaction + 8 )
const ( MethodIPresenceListenerGetVersionCb = "getVersionCb" MethodIPresenceListenerServiceAvailable = "serviceAvailable" MethodIPresenceListenerServiceUnAvailable = "serviceUnAvailable" MethodIPresenceListenerPublishTriggering = "publishTriggering" MethodIPresenceListenerCmdStatus = "cmdStatus" MethodIPresenceListenerSipResponseReceived = "sipResponseReceived" MethodIPresenceListenerCapInfoReceived = "capInfoReceived" MethodIPresenceListenerListCapInfoReceived = "listCapInfoReceived" MethodIPresenceListenerUnpublishMessageSent = "unpublishMessageSent" )
const ( TransactionIPresenceServiceGetVersion = binder.FirstCallTransaction + 0 TransactionIPresenceServiceAddListener = binder.FirstCallTransaction + 1 TransactionIPresenceServiceRemoveListener = binder.FirstCallTransaction + 2 TransactionIPresenceServiceReenableService = binder.FirstCallTransaction + 3 TransactionIPresenceServicePublishMyCap = binder.FirstCallTransaction + 4 TransactionIPresenceServiceGetContactCap = binder.FirstCallTransaction + 5 TransactionIPresenceServiceGetContactListCap = binder.FirstCallTransaction + 6 TransactionIPresenceServiceSetNewFeatureTag = binder.FirstCallTransaction + 7 )
const ( MethodIPresenceServiceGetVersion = "getVersion" MethodIPresenceServiceAddListener = "addListener" MethodIPresenceServiceRemoveListener = "removeListener" MethodIPresenceServiceReenableService = "reenableService" MethodIPresenceServicePublishMyCap = "publishMyCap" MethodIPresenceServiceGetContactCap = "getContactCap" MethodIPresenceServiceGetContactListCap = "getContactListCap" MethodIPresenceServiceSetNewFeatureTag = "setNewFeatureTag" )
const DescriptorIPresenceListener = "com.android.ims.internal.uce.presence.IPresenceListener"
const DescriptorIPresenceService = "com.android.ims.internal.uce.presence.IPresenceService"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPresenceListener ¶
type IPresenceListener interface {
AsBinder() binder.IBinder
GetVersionCb(ctx context.Context, version string) error
ServiceAvailable(ctx context.Context, statusCode common.StatusCode) error
ServiceUnAvailable(ctx context.Context, statusCode common.StatusCode) error
PublishTriggering(ctx context.Context, publishTrigger PresPublishTriggerType) error
CmdStatus(ctx context.Context, cmdStatus PresCmdStatus) error
SipResponseReceived(ctx context.Context, sipResponse PresSipResponse) error
CapInfoReceived(ctx context.Context, presentityURI string, tupleInfo []PresTupleInfo) error
ListCapInfoReceived(ctx context.Context, rlmiInfo PresRlmiInfo, resInfo []PresResInfo) error
UnpublishMessageSent(ctx context.Context) error
}
func NewPresenceListenerStub ¶
func NewPresenceListenerStub( impl IPresenceListenerServer, ) IPresenceListener
NewPresenceListenerStub creates a server-side IPresenceListener wrapping the given server implementation. The returned value satisfies IPresenceListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPresenceListenerServer ¶
type IPresenceListenerServer interface {
GetVersionCb(ctx context.Context, version string) error
ServiceAvailable(ctx context.Context, statusCode common.StatusCode) error
ServiceUnAvailable(ctx context.Context, statusCode common.StatusCode) error
PublishTriggering(ctx context.Context, publishTrigger PresPublishTriggerType) error
CmdStatus(ctx context.Context, cmdStatus PresCmdStatus) error
SipResponseReceived(ctx context.Context, sipResponse PresSipResponse) error
CapInfoReceived(ctx context.Context, presentityURI string, tupleInfo []PresTupleInfo) error
ListCapInfoReceived(ctx context.Context, rlmiInfo PresRlmiInfo, resInfo []PresResInfo) error
UnpublishMessageSent(ctx context.Context) error
}
IPresenceListenerServer is the server-side interface that user implementations provide to NewPresenceListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPresenceService ¶
type IPresenceService interface {
AsBinder() binder.IBinder
GetVersion(ctx context.Context, presenceServiceHdl int32) (common.StatusCode, error)
AddListener(ctx context.Context, presenceServiceHdl int32, presenceServiceListener IPresenceListener, presenceServiceListenerHdl common.UceLong) (common.StatusCode, error)
RemoveListener(ctx context.Context, presenceServiceHdl int32, presenceServiceListenerHdl common.UceLong) (common.StatusCode, error)
ReenableService(ctx context.Context, presenceServiceHdl int32, userData int32) (common.StatusCode, error)
PublishMyCap(ctx context.Context, presenceServiceHdl int32, myCapInfo PresCapInfo, userData int32) (common.StatusCode, error)
GetContactCap(ctx context.Context, presenceServiceHdl int32, remoteUri string, userData int32) (common.StatusCode, error)
GetContactListCap(ctx context.Context, presenceServiceHdl int32, remoteUriList []string, userData int32) (common.StatusCode, error)
SetNewFeatureTag(ctx context.Context, presenceServiceHdl int32, featureTag string, serviceInfo PresServiceInfo, userData int32) (common.StatusCode, error)
}
func NewPresenceServiceStub ¶
func NewPresenceServiceStub( impl IPresenceServiceServer, ) IPresenceService
NewPresenceServiceStub creates a server-side IPresenceService wrapping the given server implementation. The returned value satisfies IPresenceService and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPresenceServiceServer ¶
type IPresenceServiceServer interface {
GetVersion(ctx context.Context, presenceServiceHdl int32) (common.StatusCode, error)
AddListener(ctx context.Context, presenceServiceHdl int32, presenceServiceListener IPresenceListener, presenceServiceListenerHdl common.UceLong) (common.StatusCode, error)
RemoveListener(ctx context.Context, presenceServiceHdl int32, presenceServiceListenerHdl common.UceLong) (common.StatusCode, error)
ReenableService(ctx context.Context, presenceServiceHdl int32, userData int32) (common.StatusCode, error)
PublishMyCap(ctx context.Context, presenceServiceHdl int32, myCapInfo PresCapInfo, userData int32) (common.StatusCode, error)
GetContactCap(ctx context.Context, presenceServiceHdl int32, remoteUri string, userData int32) (common.StatusCode, error)
GetContactListCap(ctx context.Context, presenceServiceHdl int32, remoteUriList []string, userData int32) (common.StatusCode, error)
SetNewFeatureTag(ctx context.Context, presenceServiceHdl int32, featureTag string, serviceInfo PresServiceInfo, userData int32) (common.StatusCode, error)
}
IPresenceServiceServer is the server-side interface that user implementations provide to NewPresenceServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type PresCapInfo ¶
func (*PresCapInfo) MarshalParcel ¶
func (s *PresCapInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*PresCapInfo) UnmarshalParcel ¶
func (s *PresCapInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type PresCmdStatus ¶
func (*PresCmdStatus) MarshalParcel ¶
func (s *PresCmdStatus) MarshalParcel( p *parcel.Parcel, ) error
func (*PresCmdStatus) UnmarshalParcel ¶
func (s *PresCmdStatus) UnmarshalParcel( p *parcel.Parcel, ) error
type PresPublishTriggerType ¶
type PresPublishTriggerType struct {
PublishTriggerType int32
}
func (*PresPublishTriggerType) MarshalParcel ¶
func (s *PresPublishTriggerType) MarshalParcel( p *parcel.Parcel, ) error
func (*PresPublishTriggerType) UnmarshalParcel ¶
func (s *PresPublishTriggerType) UnmarshalParcel( p *parcel.Parcel, ) error
type PresResInfo ¶
func (*PresResInfo) MarshalParcel ¶
func (s *PresResInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*PresResInfo) UnmarshalParcel ¶
func (s *PresResInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type PresResInstanceInfo ¶
type PresResInstanceInfo struct {
Id string
Reason string
ResInstanceState int32
PresentityUri string
}
func (*PresResInstanceInfo) MarshalParcel ¶
func (s *PresResInstanceInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*PresResInstanceInfo) UnmarshalParcel ¶
func (s *PresResInstanceInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type PresRlmiInfo ¶
type PresRlmiInfo struct {
Uri string
Version int32
ListName string
RequestId int32
SubscriptionExpireTime int32
SubscriptionTerminatedReason string
PresSubscriptionState *PresSubscriptionState
}
func (*PresRlmiInfo) MarshalParcel ¶
func (s *PresRlmiInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*PresRlmiInfo) UnmarshalParcel ¶
func (s *PresRlmiInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type PresServiceInfo ¶
type PresServiceInfo struct {
ServiceID string
ServiceDesc string
ServiceVer string
MediaCap int32
}
func (*PresServiceInfo) MarshalParcel ¶
func (s *PresServiceInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*PresServiceInfo) UnmarshalParcel ¶
func (s *PresServiceInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type PresSipResponse ¶
type PresSipResponse struct {
RequestId int32
SipResponseCode int32
ReasonPhrase string
RetryAfter int32
ReasonHeader string
}
func (*PresSipResponse) MarshalParcel ¶
func (s *PresSipResponse) MarshalParcel( p *parcel.Parcel, ) error
func (*PresSipResponse) UnmarshalParcel ¶
func (s *PresSipResponse) UnmarshalParcel( p *parcel.Parcel, ) error
type PresSubscriptionState ¶
type PresSubscriptionState struct {
PresSubscriptionState int32
}
func (*PresSubscriptionState) MarshalParcel ¶
func (s *PresSubscriptionState) MarshalParcel( p *parcel.Parcel, ) error
func (*PresSubscriptionState) UnmarshalParcel ¶
func (s *PresSubscriptionState) UnmarshalParcel( p *parcel.Parcel, ) error
type PresTupleInfo ¶
func (*PresTupleInfo) MarshalParcel ¶
func (s *PresTupleInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*PresTupleInfo) UnmarshalParcel ¶
func (s *PresTupleInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type PresenceListenerProxy ¶
func NewPresenceListenerProxy ¶
func NewPresenceListenerProxy( remote binder.IBinder, ) *PresenceListenerProxy
func (*PresenceListenerProxy) AsBinder ¶
func (p *PresenceListenerProxy) AsBinder() binder.IBinder
func (*PresenceListenerProxy) CapInfoReceived ¶
func (p *PresenceListenerProxy) CapInfoReceived( ctx context.Context, presentityURI string, tupleInfo []PresTupleInfo, ) error
func (*PresenceListenerProxy) CmdStatus ¶
func (p *PresenceListenerProxy) CmdStatus( ctx context.Context, cmdStatus PresCmdStatus, ) error
func (*PresenceListenerProxy) GetVersionCb ¶
func (p *PresenceListenerProxy) GetVersionCb( ctx context.Context, version string, ) error
func (*PresenceListenerProxy) ListCapInfoReceived ¶
func (p *PresenceListenerProxy) ListCapInfoReceived( ctx context.Context, rlmiInfo PresRlmiInfo, resInfo []PresResInfo, ) error
func (*PresenceListenerProxy) PublishTriggering ¶
func (p *PresenceListenerProxy) PublishTriggering( ctx context.Context, publishTrigger PresPublishTriggerType, ) error
func (*PresenceListenerProxy) ServiceAvailable ¶
func (p *PresenceListenerProxy) ServiceAvailable( ctx context.Context, statusCode common.StatusCode, ) error
func (*PresenceListenerProxy) ServiceUnAvailable ¶
func (p *PresenceListenerProxy) ServiceUnAvailable( ctx context.Context, statusCode common.StatusCode, ) error
func (*PresenceListenerProxy) SipResponseReceived ¶
func (p *PresenceListenerProxy) SipResponseReceived( ctx context.Context, sipResponse PresSipResponse, ) error
func (*PresenceListenerProxy) UnpublishMessageSent ¶
func (p *PresenceListenerProxy) UnpublishMessageSent( ctx context.Context, ) error
type PresenceListenerStub ¶
type PresenceListenerStub struct {
Impl IPresenceListener
Transport binder.VersionAwareTransport
}
PresenceListenerStub dispatches incoming binder transactions to a typed IPresenceListener implementation.
func (*PresenceListenerStub) Descriptor ¶
func (s *PresenceListenerStub) Descriptor() string
func (*PresenceListenerStub) OnTransaction ¶
func (s *PresenceListenerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PresenceServiceProxy ¶
func NewPresenceServiceProxy ¶
func NewPresenceServiceProxy( remote binder.IBinder, ) *PresenceServiceProxy
func (*PresenceServiceProxy) AddListener ¶
func (p *PresenceServiceProxy) AddListener( ctx context.Context, presenceServiceHdl int32, presenceServiceListener IPresenceListener, presenceServiceListenerHdl common.UceLong, ) (common.StatusCode, error)
func (*PresenceServiceProxy) AsBinder ¶
func (p *PresenceServiceProxy) AsBinder() binder.IBinder
func (*PresenceServiceProxy) GetContactCap ¶
func (p *PresenceServiceProxy) GetContactCap( ctx context.Context, presenceServiceHdl int32, remoteUri string, userData int32, ) (common.StatusCode, error)
func (*PresenceServiceProxy) GetContactListCap ¶
func (p *PresenceServiceProxy) GetContactListCap( ctx context.Context, presenceServiceHdl int32, remoteUriList []string, userData int32, ) (common.StatusCode, error)
func (*PresenceServiceProxy) GetVersion ¶
func (p *PresenceServiceProxy) GetVersion( ctx context.Context, presenceServiceHdl int32, ) (common.StatusCode, error)
func (*PresenceServiceProxy) PublishMyCap ¶
func (p *PresenceServiceProxy) PublishMyCap( ctx context.Context, presenceServiceHdl int32, myCapInfo PresCapInfo, userData int32, ) (common.StatusCode, error)
func (*PresenceServiceProxy) ReenableService ¶
func (p *PresenceServiceProxy) ReenableService( ctx context.Context, presenceServiceHdl int32, userData int32, ) (common.StatusCode, error)
func (*PresenceServiceProxy) RemoveListener ¶
func (p *PresenceServiceProxy) RemoveListener( ctx context.Context, presenceServiceHdl int32, presenceServiceListenerHdl common.UceLong, ) (common.StatusCode, error)
func (*PresenceServiceProxy) SetNewFeatureTag ¶
func (p *PresenceServiceProxy) SetNewFeatureTag( ctx context.Context, presenceServiceHdl int32, featureTag string, serviceInfo PresServiceInfo, userData int32, ) (common.StatusCode, error)
type PresenceServiceStub ¶
type PresenceServiceStub struct {
Impl IPresenceService
Transport binder.VersionAwareTransport
}
PresenceServiceStub dispatches incoming binder transactions to a typed IPresenceService implementation.
func (*PresenceServiceStub) Descriptor ¶
func (s *PresenceServiceStub) Descriptor() string
func (*PresenceServiceStub) OnTransaction ¶
func (s *PresenceServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)