FMX.PhoneDialer.IFMXPhoneDialerListenerService
Delphi
IFMXPhoneDialerListenerService = interface
C++
__interface INTERFACE_UUID("{3F00F2D8-9E6A-4F55-9AE5-AA879D5FC9B4}") IFMXPhoneDialerListenerService : public System::IInterface
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
interface class |
public | FMX.PhoneDialer.pas FMX.PhoneDialer.hpp |
FMX.PhoneDialer | FMX.PhoneDialer |
Description
IFMXPhoneDialerListenerService tracks changes in the state of the phone system service.
The state of the phone system service can be:
- Calls
- Carrier
- CallState
Note: IFMXPhoneDialerListenerService service is only available for Android.
Before tracking phone calls, consider to:
- Request permission
android.permission.READ_PHONE_STATE
.- If the user is granted access, then request service and invoke the Start method.
- Otherwise, the user should explain why this permission is required.
- Call the Stop method at the end of call tracking.