Tag: clipboard
-
Copy text to clipboard in Firemonkey applications
Introduce how to use Firemonkey application to copy text to clipboard. To use the clipboard, use the IFMXClipboardService interface. Check whether the platform on which the application is running can use IFMXClipboardService. var ClipboardService: IFMXClipboardService; if TPlatformServices.Current.SupportsPlatformService( IFMXClipboardService, IInterface(ClipboardService)) then begin end; if IFMXClipboardService is available, the variable ClipboardService contains an instance of ... -
Delphi Android internal system related operations
Delphi Android internal system related operations (Cell phone information, vibration, clipboard, keyboard, phone, dialing) //Get phone information function GetPhoneInfo(): string; Var TelephonyManager: JTelephonyManager; TelephonyServiceNative: JObject; begin result := ”; TelephonyServiceNative := SharedActivityContext.getSystemService (TJContext.JavaClass.TELEPHONY_SERVICE); if Assigned(TelephonyServiceNative) then TelephonyManager := TJTelephonyManager.Wrap ((TelephonyServiceNative as ILocalObject).GetObjectID); ...