TRVSpellChecker.RegisterAsService, UnregisterAsService [FMX]

<< Click to display table of contents >>

TRVSpellChecker.RegisterAsService, UnregisterAsService [FMX]

Allows using this spelling checker as spelling checking service for a FireMonkey platform (IFMXSpellCheckerService).

function RegisterAsService: Boolean;
procedure UnregisterAsService;

At startup, our component registers a platform spelling checking service that does it work by calling the default FireMonkey service (if available; otherwise, it marks all words as valid).

After calling RegisterAsService, this component will be used by our platform service to provide suggestions for misspelled words and word completions.

In other words, until you call RegisterAsService, our platform service works as a proxy for the previous platform service; after the call, it works as a proxy for this spelling checker.

UnregisterAsService is optional: the component automatically un-registers itself from the service on destruction.

Advantages of registering our spelling checker as a FireMonkey platform service:

spelling checking on platforms where FireMonkey service is not implemented by Embarcadero yet (Windows and Linux)

using additional features (such as language selection)