Class IOSNativeCalls
An interface for the native iOS plugin.
public static class IOSNativeCalls
- Inheritance
-
objectIOSNativeCalls
Methods
ushare_interface_share_file(long, string, string?, string?, ShareFileCallback)
Shares a file using iOS's UIActivityViewController.
public static extern bool ushare_interface_share_file(long timestamp, string filePath, string? additionalText, string? title, IOSNativeCalls.ShareFileCallback callback)
Parameters
timestamplongThe timestamp of the request.
filePathstringThe path of the file to share.
additionalTextstringOptional text to share along with the image.
titlestringAn optional title for the share sheet.
callbackIOSNativeCalls.ShareFileCallbackCalled when UIActivityViewController has completed its work.
Returns
- bool
If the share request was executed successfully.
ushare_interface_share_files(long, nint[], int, string?, string?, ShareFileCallback)
Shares multiple files using iOS's UIActivityViewController.
public static extern bool ushare_interface_share_files(long timestamp, nint[] filePathPtrs, int count, string? additionalText, string? title, IOSNativeCalls.ShareFileCallback callback)
Parameters
timestamplongThe timestamp of the request.
filePathPtrsnint[]The pointers to the paths of the files to share.
countintThe total number of files to share.
additionalTextstringOptional text to share along with the image.
titlestringAn optional title for the share sheet.
callbackIOSNativeCalls.ShareFileCallbackCalled when UIActivityViewController has completed its work.
Returns
- bool
If the share request was executed successfully.
ushare_interface_share_image(nint, int, string?, string?)
Shares an image using iOS's UIActivityViewController.
public static extern bool ushare_interface_share_image(nint imagePtr, int size, string? additionalText, string? title)
Parameters
imagePtrnintA pointer to the image's data.
sizeintThe size of the image in bytes.
additionalTextstringOptional text to share along with the image.
titlestringAn optional title for the share sheet.
Returns
- bool
If the share request was executed successfully.
ushare_interface_share_images(nint[], int[], int, string?, string?)
Shares multiple images using iOS's UIActivityViewController.
public static extern bool ushare_interface_share_images(nint[] imagePtrs, int[] sizes, int count, string? additionalText, string? title)
Parameters
imagePtrsnint[]An array of pointers to each image's data.
sizesint[]An array of the sizes of each image's data in bytes.
countintThe total number of images to be shared.
additionalTextstringOptional text to share along with the images.
titlestringAn optional title for the share sheet.
Returns
- bool
If the share request was executed successfully.
ushare_interface_share_text(string, string?)
Shares text data using iOS's UIActivityViewController.
public static extern bool ushare_interface_share_text(string text, string? title)
Parameters
textstringThe text to share.
titlestringAn optional title for the share sheet.
Returns
- bool
If the share request was executed successfully.