Skip to content

Enumeration: ShareType

A preferred share type to pass to share.

Example:

playpass.share({
    text: "Hello world",
    type: "twitter",
});

Enumeration members

Any

Any = "any"

Allow the player to choose where to share.

Defined in

share/share-type.ts:19


Clipboard

Clipboard = "clipboard"

Share by copying text to the system clipboard.

Defined in

share/share-type.ts:34


Facebook

Facebook = "facebook"

Share as a post on Facebook.

Defined in

share/share-type.ts:22


Instagram

Instagram = "instagram"

Share on Instagram (not yet implemented).

Defined in

share/share-type.ts:40


Messenger

Messenger = "messenger"

Share on FB Messenger.

Defined in

share/share-type.ts:46


Reddit

Reddit = "reddit"

Share as a post on Reddit.

Defined in

share/share-type.ts:37


Sms

Sms = "sms"

Share as a SMS text message.

Defined in

share/share-type.ts:49


Telegram

Telegram = "telegram"

Share as a message on Telegram.

Defined in

share/share-type.ts:31


TikTok

TikTok = "tiktok"

Share on TikTok (not yet implemented).

Defined in

share/share-type.ts:43


Twitter

Twitter = "twitter"

Share as a tweet on Twitter.

Defined in

share/share-type.ts:25


WhatsApp

WhatsApp = "whatsapp"

Share as a message on WhatsApp.

Defined in

share/share-type.ts:28