Megacool Unity
TheUnityinterfacetotheMegacoolSDK
Public Member Functions | Properties | List of all members
MegacoolShareConfig Class Reference

Pass to Megacool.Share(MegacoolShareConfig) to configure how shares are made. More...

Public Member Functions

 MegacoolShareConfig ()
 Create a new configuration object to customize sharing. More...
 
override string ToString ()
 

Properties

string RecordingId [get, set]
 Which recording to share. More...
 
string Message [get, set]
 Set the text to be shared of different channels. More...
 
MegacoolSharingStrategy Strategy [get, set]
 Set whether to prioritize media or link when sharing to channels that support either but not both. More...
 
string FallbackImage [get, set]
 Path to a fallback image in the case the given recording doesn't exist. More...
 
Dictionary< string, string > Data [get, set]
 Set extra share data that will be present on the received MegacoolShare. More...
 
Uri Url [get, set]
 Customize the link shared. More...
 
string ModalTitle [get, set]
 Customize the title of the modal that presents the apps the user can share to. More...
 

Detailed Description

Pass to Megacool.Share(MegacoolShareConfig) to configure how shares are made.

Constructor & Destructor Documentation

◆ MegacoolShareConfig()

MegacoolShareConfig.MegacoolShareConfig ( )
inline

Create a new configuration object to customize sharing.

Property Documentation

◆ Data

Dictionary<string, string> MegacoolShareConfig.Data
getset

Set extra share data that will be present on the received MegacoolShare.

This has to be JSON serializable.

◆ FallbackImage

string MegacoolShareConfig.FallbackImage
getset

Path to a fallback image in the case the given recording doesn't exist.

Path to a fallback image, relative to the StreamingAssets directory.

◆ Message

string MegacoolShareConfig.Message
getset

Set the text to be shared of different channels.

The text should be set before Share() is called.

The sharing text.

◆ ModalTitle

string MegacoolShareConfig.ModalTitle
getset

Customize the title of the modal that presents the apps the user can share to.

The default is "Share GIF". On iOS the share modal doesn't have a title.

The title of the share modal.

◆ RecordingId

string MegacoolShareConfig.RecordingId
getset

Which recording to share.

The recording identifier.

◆ Strategy

MegacoolSharingStrategy MegacoolShareConfig.Strategy
getset

Set whether to prioritize media or link when sharing to channels that support either but not both.

The sharing strategy to use

◆ Url

Uri MegacoolShareConfig.Url
getset

Customize the link shared.

Note that only the path and query parameters are actually included in the shared link, thus this should be a relative URL of the form "/some/path?key=value".


The documentation for this class was generated from the following file: