TTMSFNCCloudIPLocalization Class
Non-visual component that resolves IP addresses to geolocation details through a configurable provider.
API unit family: TMSFNCCloudIPLocalization
Inherits from: TTMSFNCCustomCloudIPLocalization
Syntax
TTMSFNCCloudIPLocalization = class(TTMSFNCCustomCloudIPLocalization)
Remarks
Set APIKey and Service, then call GetIP; results are reported through OnGetIP.
Properties
| Name | Description |
|---|---|
| APIKey | API key used to authenticate requests to the selected provider. (inherited from TTMSFNCCustomCloudIPLocalization) |
| IPs | The list of IP entries resolved by this component. (inherited from TTMSFNCCustomCloudIPLocalization) |
| Service | Provider used to resolve IP addresses to geolocation details. (inherited from TTMSFNCCustomCloudIPLocalization) |
Methods
| Name | Description |
|---|---|
| GetIP | Starts an asynchronous lookup for the supplied IP address. The result is reported through the OnGetIP event. (inherited from TTMSFNCCustomCloudIPLocalization) |
| GetLocalizedIPByIPAddress | Returns the previously resolved IP entry that matches the supplied IP address. (inherited from TTMSFNCCustomCloudIPLocalization) |
Events
| Name | Description |
|---|---|
| OnGetFlagImage | Occurs when the flag image for a resolved IP entry has been retrieved. (inherited from TTMSFNCCustomCloudIPLocalization) |
| OnGetIP | Occurs when an IP lookup completes, exposing the resolved entry and any error. (inherited from TTMSFNCCustomCloudIPLocalization) |