{
  "api": {
    "name": "CapacitorShareTargetPlugin",
    "slug": "capacitorsharetargetplugin",
    "docs": "Capacitor Share Target Plugin interface.\n\nThis plugin allows your application to receive content shared from other apps.\nUsers can share text, URLs, and files to your app from other applications.",
    "tags": [
      {
        "text": "0.1.0",
        "name": "since"
      }
    ],
    "methods": [
      {
        "name": "addListener",
        "signature": "(eventName: 'shareReceived', listenerFunc: (event: ShareReceivedEvent) => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "The event name. Must be 'shareReceived'.",
            "type": "'shareReceived'"
          },
          {
            "name": "listenerFunc",
            "docs": "Callback function invoked when content is shared to the app.",
            "type": "(event: ShareReceivedEvent) => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [
          {
            "name": "since",
            "text": "0.1.0"
          },
          {
            "name": "param",
            "text": "eventName The event name. Must be 'shareReceived'."
          },
          {
            "name": "param",
            "text": "listenerFunc Callback function invoked when content is shared to the app."
          },
          {
            "name": "returns",
            "text": "A promise that resolves to a listener handle that can be used to remove the listener."
          },
          {
            "name": "example",
            "text": "```typescript\nconst listener = await CapacitorShareTarget.addListener('shareReceived', (event) => {\n  console.log('Title:', event.title);\n  console.log('Texts:', event.texts);\n  event.files?.forEach(file => {\n    console.log(`File: ${file.name} (${file.mimeType})`);\n  });\n});\n\n// To remove the listener:\nawait listener.remove();\n```"
          }
        ],
        "docs": "Listen for shareReceived event.\n\nRegisters a listener that will be called when content is shared to the application\nfrom another app. The callback receives event data containing title, texts, and files.",
        "complexTypes": [
          "PluginListenerHandle",
          "ShareReceivedEvent"
        ],
        "slug": "addlistenersharereceived-"
      },
      {
        "name": "removeAllListeners",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "since",
            "text": "0.1.0"
          },
          {
            "name": "returns",
            "text": "A promise that resolves when all listeners have been removed."
          },
          {
            "name": "example",
            "text": "```typescript\nawait CapacitorShareTarget.removeAllListeners();\n```"
          }
        ],
        "docs": "Remove all listeners for this plugin.",
        "complexTypes": [],
        "slug": "removealllisteners"
      },
      {
        "name": "getPluginVersion",
        "signature": "() => Promise<{ version: string; }>",
        "parameters": [],
        "returns": "Promise<{ version: string; }>",
        "tags": [
          {
            "name": "since",
            "text": "0.1.0"
          },
          {
            "name": "returns",
            "text": "A promise that resolves with an object containing the version string."
          },
          {
            "name": "throws",
            "text": "An error if something went wrong retrieving the version."
          },
          {
            "name": "example",
            "text": "```typescript\nconst { version} = await CapacitorShareTarget.getPluginVersion();\nconsole.log('Plugin version:', version);\n```"
          }
        ],
        "docs": "Get the native Capacitor plugin version.\n\nReturns the current version of the native plugin implementation.",
        "complexTypes": [],
        "slug": "getpluginversion"
      }
    ],
    "properties": []
  },
  "interfaces": [
    {
      "name": "PluginListenerHandle",
      "slug": "pluginlistenerhandle",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "remove",
          "tags": [],
          "docs": "",
          "complexTypes": [],
          "type": "() => Promise<void>"
        }
      ]
    },
    {
      "name": "ShareReceivedEvent",
      "slug": "sharereceivedevent",
      "docs": "Event data received when content is shared to the application.",
      "tags": [
        {
          "text": "0.1.0",
          "name": "since"
        }
      ],
      "methods": [],
      "properties": [
        {
          "name": "title",
          "tags": [
            {
              "text": "0.1.0",
              "name": "since"
            }
          ],
          "docs": "The title of the shared content.",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "texts",
          "tags": [
            {
              "text": "0.1.0",
              "name": "since"
            }
          ],
          "docs": "Array of text content shared to the application.",
          "complexTypes": [],
          "type": "string[]"
        },
        {
          "name": "files",
          "tags": [
            {
              "text": "0.2.0",
              "name": "since"
            }
          ],
          "docs": "Array of files shared to the application.",
          "complexTypes": [
            "SharedFile"
          ],
          "type": "SharedFile[]"
        }
      ]
    },
    {
      "name": "SharedFile",
      "slug": "sharedfile",
      "docs": "Represents a file shared to the application.",
      "tags": [
        {
          "text": "0.1.0",
          "name": "since"
        }
      ],
      "methods": [],
      "properties": [
        {
          "name": "uri",
          "tags": [
            {
              "text": "0.1.0",
              "name": "since"
            }
          ],
          "docs": "The URI of the shared file. On Android/iOS this will be a file path or data URL.\nOn web this will be a cached URL accessible via fetch.",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "name",
          "tags": [
            {
              "text": "0.1.0",
              "name": "since"
            }
          ],
          "docs": "The name of the shared file, with or without extension.",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "mimeType",
          "tags": [
            {
              "text": "0.1.0",
              "name": "since"
            }
          ],
          "docs": "The MIME type of the shared file.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    }
  ],
  "enums": [],
  "typeAliases": [],
  "pluginConfigs": []
}