public interface Event
Modifier and Type | Method and Description |
---|---|
void |
acceptSubscription()
Accept an incoming subcription.
|
void |
addCustomHeader(java.lang.String name,
java.lang.String value)
Add a custom header to an outgoing susbscription or publish.
|
void |
addListener(EventListener listener) |
void |
denySubscription(Reason reason)
Deny an incoming subscription with given reason.
|
Core |
getCore()
Returns back pointer to the #LinphoneCore that created this #LinphoneEvent.
|
java.lang.String |
getCustomHeader(java.lang.String name)
Obtain the value of a given header for an incoming subscription.
|
ErrorInfo |
getErrorInfo()
Get full details about an error occured.
|
Address |
getFrom()
Get the "from" address of the subscription.
|
java.lang.String |
getName()
Get the name of the event as specified in the event package RFC.
|
PublishState |
getPublishState()
Get publish state.
|
Reason |
getReason()
Return reason code (in case of error state reached).
|
Address |
getRemoteContact()
Get the "contact" address of the subscription.
|
Address |
getResource()
Get the resource address of the subscription or publish.
|
SubscriptionDir |
getSubscriptionDir()
Get subscription direction.
|
SubscriptionState |
getSubscriptionState()
Get subscription state.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
void |
notify(Content body)
Send a notification.
|
void |
pausePublish()
Prevent an event from refreshing its publish.
|
void |
refreshPublish()
Refresh an outgoing publish keeping the same body.
|
void |
refreshSubscribe()
Refresh an outgoing subscription keeping the same body.
|
void |
removeListener(EventListener listener) |
void |
sendPublish(Content body)
Send a publish created by linphone_core_create_publish().
|
void |
sendSubscribe(Content body)
Send a subscription previously created by linphone_core_create_subscribe().
|
void |
setListener(EventListener listener) |
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
void |
terminate()
Terminate an incoming or outgoing subscription that was previously acccepted,
or a previous publication.
|
void |
updatePublish(Content body)
Update (refresh) a publish.
|
void |
updateSubscribe(Content body)
Update (refresh) an outgoing subscription, changing the body.
|
Core getCore()
ErrorInfo getErrorInfo()
Address getFrom()
java.lang.String getName()
PublishState getPublishState()
Reason getReason()
Address getRemoteContact()
Address getResource()
SubscriptionDir getSubscriptionDir()
SubscriptionState getSubscriptionState()
void acceptSubscription()
void addCustomHeader(java.lang.String name, java.lang.String value)
void denySubscription(Reason reason)
java.lang.String getCustomHeader(java.lang.String name)
void notify(Content body)
void pausePublish()
void refreshPublish()
void refreshSubscribe()
void sendPublish(Content body)
void sendSubscribe(Content body)
void terminate()
void updatePublish(Content body)
void updateSubscribe(Content body)
void addListener(EventListener listener)
void removeListener(EventListener listener)
void setListener(EventListener listener)
void setUserData(java.lang.Object data)
java.lang.Object getUserData()