showCallkitIncoming static method
Implementation
static Future<void> showCallkitIncoming(
CallkitParamsModel callKitParams) async {
final params = CallKitParams(
id: callKitParams.uuid,
nameCaller: callKitParams.nameCaller,
appName: callKitParams.appName,
avatar: callKitParams.avatar,
handle: callKitParams.phoneNumber,
type: 0,
duration: 30000,
textAccept: 'Accept',
textDecline: 'Decline',
textMissedCall: 'Missed call',
textCallback: 'Call back',
android: AndroidParams(
isCustomNotification: true,
isShowLogo: false,
isShowCallback: false,
isShowMissedCallNotification: true,
ringtonePath: 'system_ringtone_default',
backgroundColor: callKitParams.backgroundColor ?? '#0955fa',
backgroundUrl: 'assets/test.png',
actionColor: '#4CAF50',
),
);
await FlutterCallkitIncoming.showCallkitIncoming(params);
}