FCXPlugin_CallDirectoryExtension extension

Dart representation of FlutterCallkitPlugin CallDirectory related methods from the native iOS code.

Used to get easy access to the data storage of blocked/identified numbers connected to the CallDirectory Extension.

When a phone number is blocked, the system telephony provider will disallow incoming calls from that phone number without displaying them to the user.

When a phone number has an identification entry, incoming calls from that phone number will display its associated label to the user.

To integrate CallDirectory Extension functionality to an application, it is required:

  • add a CallDirectory Extenstion to the XCode project.
  • implement data storage for blocked and/or identifiable numders in the native iOS code and connect it with CallDirectory Extension.
  • assign FlutterCallkitPlugin CallDirectory related properties with functions that access numbers storage.

See example for an example of realisation and architecture details.

on

Methods

addBlockedPhoneNumbers(List<FCXCallDirectoryPhoneNumber> numbers) Future<void>
Invokes FlutterCallkitPlugin.didAddBlockedPhoneNumbers property in the native iOS code with the given list of phone numbers to be handled as numbers to block.
addIdentifiablePhoneNumbers(List<FCXIdentifiablePhoneNumber> numbers) Future<void>
Invokes FlutterCallkitPlugin.didAddIdentifiablePhoneNumbers property in the native iOS code with the given list of phone numbers to be handled as numbers to identify.
getBlockedPhoneNumbers() Future<List<FCXCallDirectoryPhoneNumber>>
Invokes FlutterCallkitPlugin.getBlockedPhoneNumbers property in the native iOS code and returns the list of blocked phone numbers.
getIdentifiablePhoneNumbers() Future<List<FCXIdentifiablePhoneNumber>>
Invokes FlutterCallkitPlugin.getIdentifiablePhoneNumbers property in the native iOS code and returns the list of identified phone numbers.
removeAllBlockedPhoneNumbers() Future<void>
Invokes FlutterCallkitPlugin.didRemoveAllBlockedPhoneNumbers property in the native iOS code.
removeAllIdentifiablePhoneNumbers() Future<void>
Invokes FlutterCallkitPlugin.didRemoveAllIdentifiablePhoneNumbers property in the native iOS code.
removeBlockedPhoneNumbers(List<FCXCallDirectoryPhoneNumber> numbers) Future<void>
Invokes FlutterCallkitPlugin.didRemoveBlockedPhoneNumbers property in the native iOS code with the given list of phone numbers to be handled as numbers to unblock.
removeIdentifiablePhoneNumbers(List<FCXCallDirectoryPhoneNumber> numbers) Future<void>
Invokes FlutterCallkitPlugin.didRemoveIdentifiablePhoneNumbers property in the native iOS code with the given list of phone numbers to be handled as numbers to remove from identification list.