MethodChannelStreamVideoPushNotification constructor
MethodChannelStreamVideoPushNotification()
Implementation
MethodChannelStreamVideoPushNotification() {
methodChannel.setMethodCallHandler((call) async {
if (call.method == "customizeCaller") {
final name = call.arguments["created_by_display_name"];
final handle = call.arguments["created_by_id"];
final callId = call.arguments["call_cid"];
final result = callerCustomizationCallback?.call(
callCid: callId,
callerName: name,
callerHandle: handle,
);
if (result != null) {
return result.toJson();
}
return null;
}
});
}