As we have said, our service supports text and images (and custom formats you may want to register), even though the functionality is wrapped for all platforms but available only on some of them (all but Android, in fact).
This means we can still query for a reference to this service on the Android platform but functionalities will be limited and calling some methods of the interface may result in exceptions or ineffective behavior.
The following code block shows how the CopyGraphic action has been implemented (OnExecute/OnUpdate event handlers):
procedure TMainForm.CopyGraphicActionExecute(Sender: TObject);
var
LBS: TBitmapSurface;
begin
LBS := TBitmapSurface.Create();
try
LBS.Assign(CopyImage.Bitmap);
FClipboardService.SetImage(LBS);
finally
LBS.Free;
end;
end;
procedure TMainForm.CopyGraphicActionUpdate(Sender: TObject);
begin
{$IFDEF ANDROID} // clipboard does not support images
CopyGraphicAction.Enabled := False;
{$ELSE...