Chat View

Creating your own tickets view is easy.  Using the API you can get a list of your tickets or community tickets and build a totally custom view.

When building a custom view, you will want to put up an R2ChatViewController when a ticket gets selected

R2ChatViewController

Objective-C

#import "R2ChatViewController.h"
...
R2ChatViewController *vc = [[R2ChatViewController alloc]init];
[self.navigationController pushViewController:vc animated:YES];

 

Swift

let vc = R2ChatViewController()
self.navigationController?.pushViewController(vc, animated: true)

R2ChatViewController has variables to enable and disable features based on your desired functionality.

BOOL enableClose

Setting enableClose to NO will hide the close button so that the ticket can’t be closed from the view.

BOOL enableCall

Setting enableCall to NO will hide the call button so that a call can’t be initiated from within the view.

BOOL enableFollow

Setting enableFollow to NO will hide the follow button so that the ticket can’t be followed from the view.

BOOL enableReporting

Setting enableClose to YES will show the reporting button so that the ticket can be flagged as inappropriate from the view.  This property defaults to NO.

 

Custom Banner View

The custom banner view is an optional view that sits under the navigation bar, it is 100px tall and full width.

UIView customBannerView