public static interface CapabilityManager.WithManagement extends CapabilityManager, Resettable
CapabilityManager.Defaults, CapabilityManager.WithManagement
Modifier and Type | Method and Description |
---|---|
void |
endNegotiation()
Ends negotiation status, making
isNegotiating() false. |
boolean |
isNegotiating()
Gets if we are still in negotiation.
|
void |
setCapabilities(@NonNull List<CapabilityState> capabilityStates)
Wipes the previously known active capabilities, setting only those
in the provided list.
|
void |
setSupportedCapabilities(@NonNull List<CapabilityState> capabilityStates)
Sets the supported capabilities as reported by the server.
|
void |
updateCapabilities(@NonNull List<CapabilityState> capabilityStates)
Updates the current active capabilities, adding new and removing
any labeled with
CapabilityState.isDisabled() . |
getCapabilities, getCapability, getSupportedCapabilities, getSupportedCapability
reset
boolean isNegotiating()
Resettable.reset()
.void endNegotiation()
isNegotiating()
false.void updateCapabilities(@NonNull List<CapabilityState> capabilityStates)
CapabilityState.isDisabled()
.capabilityStates
- capability statesvoid setCapabilities(@NonNull List<CapabilityState> capabilityStates)
capabilityStates
- fresh set of capability statesvoid setSupportedCapabilities(@NonNull List<CapabilityState> capabilityStates)
capabilityStates
- supported capabilitiesCopyright © 2013–2021 Kitteh. All rights reserved.