Class IOSInterop
Interface for the native iOS plugin.
public static class IOSInterop
- Inheritance
-
objectIOSInterop
Methods
ushare_ios_share_files(int, string[], int, string?, string?, ActivityFinishedCallback)
Shares files using UIActivityViewController.
public static extern bool ushare_ios_share_files(int id, string[] paths, int count, string? text, string? title, IOSInterop.ActivityFinishedCallback callback)
Parameters
idintThe ID of this event, to be returned in
callback.pathsstring[]The paths to the files being shared.
countintLength of
paths.textstringOptional additional text to share.
titlestringOptional title for the sharesheet.
callbackIOSInterop.ActivityFinishedCallbackCallback for when the activity has finished. Note that this is not an indication of the operation being completed.
Returns
Exceptions
- PlatformNotSupportedException
Thrown if this method is called on a runtime other than iOS.
ushare_ios_share_images(int, nint[], int[], int, string?, string?, ActivityFinishedCallback)
Shares images using UIActivityViewController.
public static extern bool ushare_ios_share_images(int id, nint[] images, int[] sizes, int count, string? text, string? title, IOSInterop.ActivityFinishedCallback callback)
Parameters
idintThe ID of this event, to be returned in
callback.imagesnint[]The images being shared.
sizesint[]The size of each image in
images, in bytes.countintLength of
imagesandsizes.textstringOptional additional text to share.
titlestringOptional title for the sharesheet.
callbackIOSInterop.ActivityFinishedCallbackCallback for when the activity has finished. Note that this is not an indication of the operation being completed.
Returns
Exceptions
- PlatformNotSupportedException
Thrown if this method is called on a runtime other than iOS.
ushare_ios_share_text(int, string, string?, ActivityFinishedCallback)
Shares text data using UIActivityViewController.
public static extern bool ushare_ios_share_text(int id, string text, string? title, IOSInterop.ActivityFinishedCallback callback)
Parameters
idintThe ID of this event, to be returned in
callback.textstringThe text to share.
titlestringOptional title for the sharesheet.
callbackIOSInterop.ActivityFinishedCallbackCallback for when the activity has finished. Note that this is not an indication of the operation being completed.
Returns
Exceptions
- PlatformNotSupportedException
Thrown if this method is called on a runtime other than iOS.