Inherits from NSObject
Declared in ForgeApp.h
ForgeApp.m

Overview

ForgeApp is a singleton that allows global access to various useful objects and methods

Tasks

Properties

appConfig

appConfig dictionary

@property NSDictionary *appConfig

Declared In

ForgeApp.h

appDelegate

Forge app delegate

@property ForgeAppDelegate *appDelegate

Declared In

ForgeApp.h

inspectorEnabled

Whether the inspector module is enabled – used to enable extra debug events

@property BOOL inspectorEnabled

Declared In

ForgeApp.h

statusBarBox

The fake status bar element used to create the translucent glass effect on iOS 7

@property UINavigationBar *statusBarBox

Declared In

ForgeApp.h

viewController

Forge view controller

@property ForgeViewController *viewController

Declared In

ForgeApp.h

webView

Main webView used for Forge

@property UIWebView *webView

Declared In

ForgeApp.h

webviewTop

The Y co-ordinate where the webview becomes visible (used to place things like the topbar)

@property int webviewTop

Declared In

ForgeApp.h

Class Methods

sharedApp

Access shared singleton

+ (ForgeApp *)sharedApp

Declared In

ForgeApp.m

Instance Methods

configForModule:

Helper to access config for a particular plugin.

- (NSDictionary *)configForModule:(NSString *)name

Declared In

ForgeApp.m

event:withParam:

Trigger an event in JavaScript

- (void)event:(NSString *)name withParam:(id)params

Parameters

name

the event name the JavaScript should set a listener for

params

(optional) the object that will be passed to the JavaScript event listener

Declared In

ForgeApp.m