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

PropertyTypeDescription
appAppReference to the app.

Methods

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

Links to this page: