TCGBWebViewConfiguration Class Reference

Inherits from NSObject
Declared in TCGBWebViewConfiguration.h

Overview

The TCGBWebViewConfiguration configures the behavior of webview launching.

Style

  style

Launching Style.

@property (atomic) TCGBWebViewStyle style

Discussion

Warning: Default is a TCGBWebViewLaunchFullScreen.

Declared In

TCGBWebViewConfiguration.h

Orientation

  orientationMask

Orientation Mask.

@property (atomic, setter=setOrientationMask:) TCGBWebViewOrientationMask orientationMask

Discussion

Warning: Default is a value that is converted to application’s orientation value toward TCGBWebViewOrientation bit mask.

Declared In

TCGBWebViewConfiguration.h

ContentMode

  contentMode

Content Mode.

@property (atomic, setter=setContentMode:) TCGBWebViewContentMode contentMode

Discussion

Warning: Default is a TCGBWebViewContentModeRecommended.

Declared In

TCGBWebViewConfiguration.h

Navigation

  navigationBarHeight

Navigation Bar Height.

@property (assign) CGFloat navigationBarHeight

Discussion

Only used in full screen launch style.

Warning: Default value is 50.

Declared In

TCGBWebViewConfiguration.h

  navigationBarColor

Navigation Bar Color.

@property (strong, nonatomic) UIColor *navigationBarColor

Discussion

Only used in full screen launch style.

Warning: Default value is blue.

Declared In

TCGBWebViewConfiguration.h

  navigationBarTitle

Navigation Bar Title.

@property (strong, nonatomic) NSString *navigationBarTitle

Discussion

Only used in full screen launch style.

Warning: Default value is html document’s title. If it was set, this title would be displayed.

Declared In

TCGBWebViewConfiguration.h

  isStatusBarVisible

Boolean value. (Deprecated: As of release 2.11.0.)

@property (assign) BOOL isStatusBarVisible

Availability

Added 1.1.0.

Discussion

Warning: Default value is NO. It is only used in FullScreen Style.

Declared In

TCGBWebViewConfiguration.h

  isNavigationBarVisible

Boolean value.

@property (assign) BOOL isNavigationBarVisible

Discussion

Warning: Default value is YES. It is only used in FullScreen Style.

Declared In

TCGBWebViewConfiguration.h

  isBackButtonVisible

Boolean value.

@property (assign) BOOL isBackButtonVisible

Discussion

Warning: Default value is YES.

Declared In

TCGBWebViewConfiguration.h

  closeImagePathForFullScreenNavigation

Close Image Path.

@property (strong, nonatomic) NSString *closeImagePathForFullScreenNavigation

Discussion

Only used in full screen launch style.

Warning: Default value is “TCGBwebkit-cancel-black.png” in Gamebase.bundle

Declared In

TCGBWebViewConfiguration.h

  goBackImagePathForFullScreenNavigation

Back Button Image Path.

@property (strong, nonatomic) NSString *goBackImagePathForFullScreenNavigation

Discussion

Only used in full screen launch style.

Warning: Default value is “TCGBwebkit-goback-black.png” in Gamebase.bundle

Declared In

TCGBWebViewConfiguration.h

Popup

  backgroundOpacity

Alpha value of the background.

@property (atomic, setter=setBackgroundOpacity:) CGFloat backgroundOpacity

Discussion

Only used in popup launch style.

Warning: This value should be between 0 and 1.

Declared In

TCGBWebViewConfiguration.h

  backgroundColor

Background Mask View Color.

@property (strong, nonatomic) UIColor *backgroundColor

Discussion

Only used in popup launch style.

Warning: Default value is black.

Declared In

TCGBWebViewConfiguration.h

  closeImagePathForPopup

Close Image Path.

@property (strong, nonatomic) NSString *closeImagePathForPopup

Discussion

Only used in popup launch style.

Warning: Default value is “TCGBwebkit-cancel-circle-white.png” in Gamebase.bundle

Declared In

TCGBWebViewConfiguration.h

  closeButtonOffsetInPopupStyle

Offset of close button in Pop Up Style.

@property (atomic) CGPoint closeButtonOffsetInPopupStyle

Discussion

Base point is the right upper corner point. Default value is (0, 0)

Declared In

TCGBWebViewConfiguration.h

Delegate Protocol

  delegate

UIViewController Delegate.

@property (strong, nonatomic) id<TCGBWebViewDelegate> delegate

Discussion

It is used to delegate UIViewController’s methods such as viewDidLoad: viewWillLoad: viewDidDisappear: and etc.

Declared In

TCGBWebViewConfiguration.h