Shared Interfaces

Shared interfaces are implemented by services to enable specific functionality depending if you’re using the trellispark website or MAUI application.

IGI_Map

This interface is intended to be used by services to provide the ability to open the default map application on a user’s device if they’re using the MAUI application. This interface contains the following properties and methods:

  • bool IsAvailable – Intended to indicate if the functionality is available on the current device.
  • Task<string> OpenMapWithCoordinates(string lat, string lng) – Intended to open the users default map application and navigate to the provided coordinates.

IGI_Storage

This interface is intended to be used by services to provide access to the devices camera, microphone, or file explorer to get a file to upload to storage. This interface contains the following properties and methods:

  • bool IsAvailable – Intended to indicate if the functionality is available on the current device.
  • Task<StorageInformation> OpenFilePicker() – Intended to open the users file explorer.
  • Task<string> DownloadFileFromURL(string url) – Intended to open the users default browser and open the download link to the file.
  • Task<StorageInformation> CapturePhoto() – Intended to open the users default camera to take a photo to upload.
  • Task<StorageInformation> CaptureVideo() – Intended to open the users default camera and microphone to record a video to upload.

IGI_Contact

This interface is intended to be used by services to provide the ability to perform various contact actions. This interface contains the following properties and methods:

  • bool IsAvailable – Intended to indicate if the functionality is available on the current device.
  • Task<string> CallPhoneNumber(string phoneNumber) – Intended to open the devices dialer and pre-populate it with the pass phone number.
  • Task<string> ComposeEmail(string recipient) – Intended to open the devices default email application and compose a new email to the passed address.
  • Task<string> ComposeSMS(string phoneNumber) – Intended to open the devices default messaging application and compose a new message to the passed phone number.
Updated on November 1, 2022

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support

Leave a Comment