Skip to content

ShareReceiver

Unofficial

Handler for receiving shared files and text from other apps on mobile.

Import:

import type { ShareReceiver } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ShareReceiver

Constructor

new ShareReceiver(app: App)

Constructor.

To get the constructor instance, use getShareReceiverConstructor from obsidian-typings/implementations.

Properties

Property Type Description
app App Reference to the app.

Methods

Method Returns Description
handleShareFiles(files) Promise<void> Handles shared files.
handleShareText(text) Promise<void> Handles shared text.
importFiles(files) Promise<void> Imports shared files.
setupNative() void Configures mobile native events to handle file and text sharing.
setupWorkspace() void Configures the workspace to handle file and text sharing.

Links to this page: