WebCallkitWeb class

A web implementation of the WebCallkitPlatform of the WebCallkit plugin.

Inheritance

Constructors

WebCallkitWeb.new({CKConfiguration? configuration})
The method channel used to interact with the native platform.

Properties

callStream Stream<Iterable<CKCall>>
no setteroverride
eventStream Stream<CKCallEvent>
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
getCall(String uuid) CKCall?
Get a call currently in the callkit UI.
override
getCalls() Iterable<CKCall>
Get all calls currently in the callkit UI.
override
getNotification(String uuid) CKNotification?
Get a call currently in the callkit UI.
override
hasPermissions() Future<bool>
Check if the notification permissions are granted
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renotify(String uuid, {bool silent = false}) Future<void>
override
reportCallDisconnected(String uuid, {required CKDisconnectResponse response}) Future<void>
Report that a call was disconnected with a response DisconnectResponse.
override
reportIncomingCall({required String uuid, required String handle, Set<CKCapability>? capabilities, Set<CKCallAttributes>? attributes, Map<String, dynamic>? data, Map<String, dynamic>? metadata, CKCallType callType = CKCallType.audio, CKCallState? stateOverride}) Future<CKCall>
Register an incoming call with the kit. This adds a new call to the callkit UI and handles according to call lifecycle defined in CallState.
override
reportOngoingCall({required String uuid, required String handle, Set<CKCapability>? capabilities, Set<CKCallAttributes>? attributes, Map<String, dynamic>? data, bool holding = false, CKCallType callType = CKCallType.audio, Map<String, dynamic>? metadata}) Future<CKCall>
Register an ongoing call with the kit. This adds a new call to the callkit UI and handles according to call lifecycle defined in CallState.
override
reportOutgoingCall({required String uuid, required String handle, Set<CKCapability>? capabilities, Set<CKCallAttributes>? attributes, Map<String, dynamic>? data, Map<String, dynamic>? metadata, CKCallType callType = CKCallType.audio}) Future<CKCall>
Register a new call with the kit. This adds a new call to the callkit UI and handles according to call lifecycle defined in CallState.
override
requestPermissions() Future<bool>
Requests notification permissions from web browser
override
setConfiguration(CKConfiguration configuration) → void
Initialize the callkit with the configuration.
override
setOnCallActionHandler(OnCallActionListener onCallActionListener) → void
override
setOnCallEventListener(OnCallEventListener onCallEventListener) → void
override
setOnCallTypeChangeListener(OnCallTypeChangeListener onCallTypeChangeListener) → void
override
setOnDisconnectListener(OnDisconnectListener onDisconnectListener) → void
override
setOnDismissedListener(OnDismissedListener onDismissedListener) → void
override
toString() String
A string representation of this object.
inherited
updateCallAttributes(String uuid, {required Set<CKCallAttributes> attributes}) Future<CKCall?>
Update the call attributes of a call in the callkit UI.
override
updateCallCapabilities(String uuid, {required Set<CKCapability> capabilities}) Future<CKCall?>
Update the call capabilities of a call in the callkit UI.
override
updateCallData(String uuid, {required Map<String, dynamic> data}) Future<CKCall?>
Update the call data of a call in the callkit UI.
override
updateCallMetadata(String uuid, {required Map<String, dynamic> metadata}) Future<void>
Update the call data of a call in the callkit UI.
override
updateCallStatus(String uuid, {required CKCallState callStatus}) Future<CKCall?>
Update the call status of a call in the callkit UI.
override
updateCallType(String uuid, {required CKCallType callType}) Future<CKCall?>
Update the call type of a call in the callkit UI.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

registerWith(Registrar registrar) → void

Constants

tag → const String