Skip to content

TTMSFMXNativeSLComposeViewController

Usage

The TMSFMXNativeSLComposeViewController class presents a view to the user to compose a post for supported social networking services.

Public Properties

Property name Description
SLComposeViewController Returns a reference to the native iOS SLComposeViewController.

Public Methods

Methods name Description
AddBitmap(ABitmap: TBitmap): Boolean; Adds a bitmap to the service.
AddBitmapFile(ABitmapFile: String): Boolean; Adds a bitmap from a file to the service.
AddMessage(AMessage: String): Boolean; Adds a message to the service.
AddURL(AURl: String): Boolean; Adds an URL to the service.
InitializeForServiceType(AServiceType: TTMSFMXNativeSLComposeViewControllerServiceType); Initializes the SLComposeViewControler for the specific service.
isServiceTypeAvailable(AServiceType: TTMSFMXNativeSLComposeViewControllerServiceType): Boolean; Shows a dialog to post to a specific service with a message, optional bitmap and url.
Post(AServiceType: TTMSFMXNativeSLComposeViewControllerServiceType; AMessage: string; ABitmap: TBitmap; AURL: String): Boolean; Shows a dialog to post to a specific service with a message, optional bitmap and url.
Post(AServiceType: TTMSFMXNativeSLComposeViewControllerServiceType; AMessage: string; ABitmapFile: String; AURL: String): Boolean; Shows a dialog to post to a specific service with a message, optional bitmap file and url.
SLComposeViewController Returns a reference to the native iOS SLComposeViewController.

Published Events

Events name Description
OnCancelled Event called when the post action is cancelled.
OnDone Event called when the post action is successful.