Conforms to NSObject
Declared in WTArchitectView.h

Overview

The WTArchitectViewDelegate offers the possibility to either react on events that are triggered inside the ARchitect World or events that are triggerd because of some interaction with the WTArchitectView.

Instance Methods

architectView:didCaptureScreenWithContext:

This method is called when the WTArchitectView did finish capturing a screenshot

- (void)architectView:(WTArchitectView *)architectView didCaptureScreenWithContext:(NSDictionary *)context

Parameters

architectView

The ArchitectView which generated the screenshot.

context

A NSDictionary, containig at least CaptureMode (Key = WTScreenshotCaptureMode) and SavingMode (Key = WTScreenshotSaveMode). Optional objects are given for the different SaveModes.

Discussion

The context contains different objects depending on the SaveMode. SaveMode PhotoLibrary contains the two standard objects (CaptureMode & SaveMode). SaveMode PhotoLibrary contains additional a UIImage object (the Screenshot, Key = WTScreenshotKey). SaveMode BundleDirectory contains a NSString object representing the file path in the bundle (Key = WTScreenshotPath).

Declared In

WTArchitectView.h

architectView:didFailCaptureScreenWithError:

This method is called when the WTArchitectView couldn’t finish capturing a screenshot

- (void)architectView:(WTArchitectView *)architectView didFailCaptureScreenWithError:(NSError *)error

Parameters

architectView

The ArchitectView which couldn’t finish the capturing.

error

A NSError, providing more information on what was failing.

Declared In

WTArchitectView.h

architectView:didFailLoadWithError:

This method is called when the provided architect world url failed to load. (Deprecated: since version 4.0.2)

- (void)architectView:(WTArchitectView *)architectView didFailLoadWithError:(NSError *)error

Parameters

architectView

The ArchitectView which failed to load the url.

error

An error object containing more informations why the load did fail.

Declared In

WTArchitectView.h

architectView:didFailToLoadArchitectWorldNavigation:withError:

This method is called when the provided architect world url failed to load.

- (void)architectView:(WTArchitectView *)architectView didFailToLoadArchitectWorldNavigation:(WTNavigation *)navigation withError:(NSError *)error

Parameters

architectView

The ArchitectView which failed to load the url.

navigation

The navigation which failed to load.

error

An error object containing more informations why the load did fail.

Declared In

WTArchitectView.h

architectView:didFinishLoad:

This method is called when the provided architect world url finished loading. (Deprecated: since version 4.0.2)

- (void)architectView:(WTArchitectView *)architectView didFinishLoad:(NSURL *)url

Parameters

architectView

The ArchitectView that finished loading.

url

The URL that is loaded.

Declared In

WTArchitectView.h

architectView:didFinishLoadArchitectWorldNavigation:

This method is called when the provided architect world url finished loading. The resulting navigation object contains the original load url as well as the final resolved url.

- (void)architectView:(WTArchitectView *)architectView didFinishLoadArchitectWorldNavigation:(WTNavigation *)navigation

Parameters

architectView

The architect view that finished loading.

navigation

The navigation that finished loading.

Declared In

WTArchitectView.h

architectView:invokedURL:

This method offers the possibility to react on events that are triggered inside the ARchitect World. To initiate such an event, the ARchitect World simply has to make an request for an url with the “architectsdk://” scheme. E.g.: architectsdk://opendetails?id=123.

- (void)architectView:(WTArchitectView *)architectView invokedURL:(NSURL *)URL

Parameters

architectView

The WTArchitectView object which invoked the url.

URL

The url which was called in javascript.

Declared In

WTArchitectView.h

architectView:willPresentViewController:onViewController:

This method is called every time the architect view presents a view controller on top of itself. If the architect view is presented using a navigation controller, additional view controller will be pushed onto the navigation controller stack. On all other controller (e.g. tab bar controller) a modal presentation will be used.

- (void)architectView:(WTArchitectView *)architectView willPresentViewController:(UIViewController *)presentedViewController onViewController:(UIViewController *)presentingViewController

Parameters

architectView

The architect view which is about to present a view controller.

presentedViewController

The view controller which will be presented.

presentingViewController

The view controller which will present the new view controller. This can be an internally created view controller or the view controller which was returned from the presentingViewControllerForViewControllerPresentationInArchitectView: delegate method.

Discussion

Use this method to e.g. stype the UI elements on the presented view controller or change the modal presentation style.

Declared In

WTArchitectView.h

presentingViewControllerForViewControllerPresentationInArchitectView:

This method is called every time the architect view want’s to present a view controller.

- (UIViewController *)presentingViewControllerForViewControllerPresentationInArchitectView:(WTArchitectView *)architectView

Parameters

architectView

The architect view which want’s to present a view controller.

Return Value

A view controller which can be used for presentation.

Discussion

if nil is returned or the method is not implemented, the architect view tries to grab an appropriate view controller from the current view controller hierarchy.

Declared In

WTArchitectView.h