Class
Objective-C

ZingViewController

#import <ZingEngine/ZingEngine.h>
@interface ZingViewController : UIViewController

A view controller that displays and manages a Zing view stack inside a native iOS application.

Members

@property (weak) id<ZingViewControllerDelegate> delegate;

The ZingViewController's delegate.

The value of this property is nil if the controller doesn’t have a delegate.

- (void)broadcastMessage: (NSString *)message;

Sends a broadcast message. The message must be a valid JSON string.

Broadcast messages are truly "broadcast" - they will be received by System.broadcastMessage() handlers in Zing code as well as any native ZingViewControllerDelegate.broadcastMessageReceived() delegate implementation.