MLShareItem Class Reference

Inherits from NSObject
Declared in MLShareItem.h

Overview

The MLShareItem represents an item to share.

Properties

  objectId

Share item id

@property (nullable, nonatomic, readonly) NSUUID *objectId

Declared In

MLShareItem.h

  title

The title

@property (nullable, nonatomic, strong) NSString *title

Declared In

MLShareItem.h

  detail

The description for the item.

@property (nullable, nonatomic, strong) NSString *detail

Declared In

MLShareItem.h

  webpageURL

The webpage url.

@property (nullable, nonatomic, strong) NSURL *webpageURL

Declared In

MLShareItem.h

  previewImageData

The data of preview image.

@property (nullable, nonatomic, strong) NSData *previewImageData

Declared In

MLShareItem.h

  attachmentURL

Attachment

@property (nullable, nonatomic, strong) NSURL *attachmentURL

Declared In

MLShareItem.h

  mediaType

Content type of the item

@property (nonatomic) MLSContentMediaType mediaType

Declared In

MLShareItem.h

– setLocationWithLatitude:longitude:

Set location for the item

- (void)setLocationWithLatitude:(double)latitude longitude:(double)longitude

Parameters

latitude

latitude, valid value range is [-90, 90]

longitude

longitude, valid value range is [-180, 180]

Declared In

MLShareItem.h

Constructors

– initWithMediaType:

Instantiate a share item.

- (instancetype)initWithMediaType:(MLSContentMediaType)mediaType

Parameters

mediaType

The content type of the item

Return Value

A new share item.

Declared In

MLShareItem.h

Convenience

+ itemWithMediaType:

Create a share item.

+ (instancetype)itemWithMediaType:(MLSContentMediaType)mediaType

Parameters

mediaType

The content type of the item

Return Value

A new share item.

Declared In

MLShareItem.h

+ textItemWithTitle:detail:

Create a text share item.

+ (instancetype)textItemWithTitle:(nullable NSString *)title detail:(NSString *)detail

Parameters

title

The title

detail

Description

Return Value

A new text share item.

Declared In

MLShareItem.h

+ imageItemWithImageURL:title:detail:

Create a image share item.

+ (instancetype)imageItemWithImageURL:(NSURL *)imageURL title:(nullable NSString *)title detail:(nullable NSString *)detail

Parameters

imageURL

The URL

title

title

detail

description

Return Value

A new image share item.

Declared In

MLShareItem.h

+ webpageItemWithURL:title:detail:

Create a webpage share item.

+ (instancetype)webpageItemWithURL:(NSURL *)url title:(nullable NSString *)title detail:(nullable NSString *)detail

Parameters

url

The webpage URL

title

title

detail

description

Return Value

A new webpage share item.

Declared In

MLShareItem.h