Essential Kit Tutorials
DocumentationDownload
Latest(v3)
Latest(v3)
  • Introduction
  • Features Overview
  • Whats new in v3
    • Version 3 vs Version 2
    • Release Notes
    • Upgrade from V2
  • Plugin Overview
    • Settings
    • Folder Structure
    • Installation FAQ
    • Upgrade Guide
  • Features
    • 📒Address Book
      • Setup
      • Usage
      • Testing
      • FAQ
    • App Shortcuts
      • Setup
      • Usage
    • 🆕App Updater
      • Setup
      • Usage
    • 💲Billing Services
      • Setup
        • iOS
        • Android
      • Usage
      • Testing
        • iOS
        • Android
      • FAQ
    • ☁️Cloud Services
      • Setup
        • iOS
        • Android
      • Usage
      • Testing
      • FAQ
    • 🔗Deep Link Services
      • Setup
        • iOS
        • Android
      • Usage
      • Testing
      • FAQ
    • 🛠️Utilities (Extras)
      • Usage
    • 💯Game Services
      • Setup
        • iOS
        • Android
      • Usage
      • FAQ
    • 📸Media Services
      • Setup
      • Usage
      • FAQ
    • 📆Native UI
      • Setup
      • Usage
      • FAQ
      • Examples
        • Login Dialog
    • Network Services
      • Setup
      • Usage
      • FAQ
    • ⏰Notification Services
      • Setup
        • iOS
        • Android
      • Usage
      • Examples
        • Nudge to come-back to the game
      • FAQ
    • ⭐Rate My App
      • Setup
      • Usage
      • FAQ
    • 🤝Sharing
      • Setup
      • Usage
        • Message Composer
        • Mail Composer
        • Social Share Composer
        • Share Sheet
      • FAQ
      • Examples
        • Add Attachment Example
    • Task Services
      • Setup
      • Usage
    • 🌏Web View
      • Setup
      • Usage
      • FAQ
      • Examples
        • Loading Pdf File
  • Notes
    • Resolving Android Gradle Build Errors
    • Google Play Services Authentication
    • Target API Level vs Min API Level
    • Handling Refunds for In-App Purchases (Billing Services)
Powered by GitBook
On this page
  • Share text
  • Share text with screenshot
  • Share screenshot
  • Share image
  • Share URL with text

Was this helpful?

Edit on GitHub
  1. Features
  2. Sharing
  3. Usage

Share Sheet

Share sheet allows you to share your content to any app in general. What ever apps that support to share your content will be shown to the user and user can select the service he/she wants to share on.

Share text

ShareSheet shareSheet = ShareSheet.CreateInstance();
shareSheet.AddText("Text");
shareSheet.SetCompletionCallback((result, error) => {
    Debug.Log("Share Sheet was closed. Result code: " + result.ResultCode);
});
shareSheet.Show();

Share text with screenshot

ShareSheet shareSheet = ShareSheet.CreateInstance();
shareSheet.AddText("Text");
shareSheet.AddScreenshot();
shareSheet.SetCompletionCallback((result, error) => {
    Debug.Log("Share Sheet was closed. Result code: " + result.ResultCode);
});
shareSheet.Show();

Share screenshot

ShareSheet shareSheet = ShareSheet.CreateInstance();
shareSheet.AddScreenshot();
shareSheet.SetCompletionCallback((result, error) => {
    Debug.Log("Share Sheet was closed. Result code: " + result.ResultCode);
});
shareSheet.Show();

Share image

Texture2D texture = Resources.Load<Texture2D>("texture name");

ShareSheet shareSheet = ShareSheet.CreateInstance();
shareSheet.AddImage(texture);
shareSheet.SetCompletionCallback((result, error) => {
    Debug.Log("Share Sheet was closed. Result code: " + result.ResultCode);
});
shareSheet.Show();

Share URL with text

ShareSheet shareSheet = ShareSheet.CreateInstance();
shareSheet.AddText("Text");
shareSheet.AddURL(URLString.URLWithPath("https://www.google.com"));
shareSheet.SetCompletionCallback((result, error) => {
    Debug.Log("Share Sheet was closed. Result code: " + result.ResultCode);
});
shareSheet.Show();
PreviousSocial Share ComposerNextFAQ

Last updated 5 months ago

Was this helpful?

🤝