CallKeepIncomingConfig class
The configuration of an incoming call from CallKeep
- Inheritance
-
- Object
- CallKeepBaseData
- CallKeepCallData
- CallKeepIncomingConfig
Constructors
-
CallKeepIncomingConfig({String contentTitle = "", String acceptText = 'Accept', String declineText = 'Decline', String missedCallText = 'Missed call', String callBackText = 'Call back', required String uuid, required String appName, String? callerName, String? avatar, String? handle, bool hasVideo = false, double duration = 180, Map<
String, dynamic> ? extra, Map<String, dynamic> ? headers, required CallKeepAndroidConfig androidConfig, required CallKeepIosConfig iosConfig}) -
CallKeepIncomingConfig.fromBaseConfig({required CallKeepBaseConfig config, required String uuid, String? callerName, String? handle, String? contentTitle, String? avatar, bool hasVideo = false, Map<
String, dynamic> ? extra, double duration = 180}) -
factory
Properties
- acceptText → String
-
Text Accept to be shown for the user to accept the call
final
- androidConfig → CallKeepAndroidConfig
-
Android configuration needed to customize the UI.
final
- appName → String
-
App's name. using for display inside Callkit.
final
- avatar → String?
-
Avatar's URL used for display for Android.
i.e: /android/src/main/res/drawable-xxxhdpi/ic_default_avatar.png
final
- callBackText → String
-
Text Call Back to be shown for the user to call back after a missed call
final
- callerName → String?
-
Caller's name.
finalinherited
- contentTitle → String
-
Call notification content title and full screen incoming call activity header
final
- declineText → String
-
Text Decline to be shown for the user to decline the call
final
- duration → double
-
Incoming/Outgoing call display time (in seconds). If the time is over, the call will be missed.
finalinherited
-
extra
→ Map<
String, dynamic> ? -
Any data added to the event when received.
finalinherited
- handle → String?
-
The handle of the caller (Phone number/Email/Any.)
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasVideo → bool
-
Whether the call has video or audio only
finalinherited
-
headers
→ Map<
String, dynamic> ? -
Any data for custom header avatar/background image.
final
- iosConfig → CallKeepIosConfig
-
iOS configuration needed for CallKit.
final
- isAccepted → bool
-
Whether call is accepted or not, defaults to false
finalinherited
- missedCallText → String
-
Text Missed Call to be shown for the user to indicate a missed call
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uuid → String
-
A unique UUID identifier for each call
and when the call is ended, the same UUID for that call to be used.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited