RBSharingService Class Reference

Inherits from NSObject
Declared in RBSharingService.h

Overview

A social sharing service. This is an abstract class.

+ twitter

The Twitter social sharing service.

+ (nonnull RBSharingService *)twitter

Return Value

The service object.

Declared In

RBSharingService.h

+ facebook

The Facebook social sharing service.

+ (nonnull RBSharingService *)facebook

Return Value

The service object.

Declared In

RBSharingService.h

+ email

The Email social sharing service.

+ (nonnull RBEmailSharingService *)email

Return Value

The service object.

Declared In

RBSharingService.h

  serviceIsAvailable

Whether or not the service is available.

@property (nonatomic, readonly) BOOL serviceIsAvailable

Declared In

RBSharingService.h

– composeWithText:completion:

Open the relevant sharing compose UI with the given initial text.

- (BOOL)composeWithText:(nonnull NSString *)text completion:(nullable void ( ^ ) ( BOOL cancelled ))completion

Parameters

text

The initial text to place in the compose UI.

completion

An optional block to be called when the compose UI is concluded.

Return Value

Whether or not compose was available and opened.

Declared In

RBSharingService.h