AFAdSDKSashimiView Class Reference

Inherits from UIView
Declared in AFAdSDKSashimiView.h

Overview

AFAdSDKSashimiView is a generic adertisement view containing all the information needed to create your own sashimi ads.

  delegate

The object that acts as the delegate of the receiving sashimi view.

@property (nonatomic, weak) id<AFAdSDKSashimiViewDelegate> delegate

Availability

2.4.0

Declared In

AFAdSDKSashimiView.h

  title

Title of the application.

@property (nonatomic, readonly) NSString *title

Availability

2.2.0

Declared In

AFAdSDKSashimiView.h

  tagline

Tagline of the application.

@property (nonatomic, readonly) NSString *tagline

Availability

2.2.0

Declared In

AFAdSDKSashimiView.h

  category

Localized category of the application.

@property (nonatomic, readonly) NSString *category

Availability

2.2.0

Declared In

AFAdSDKSashimiView.h

  callToActionTitle

Localized title of the call to action view.

@property (nonatomic, readonly) NSString *callToActionTitle

Availability

2.2.0

Declared In

AFAdSDKSashimiView.h

  iconURL

Icon URL of the application.

@property (nonatomic, readonly) NSString *iconURL

Availability

2.2.0

Declared In

AFAdSDKSashimiView.h

  screenshotURL

Screenshot URL of the application.

@property (nonatomic, readonly) NSString *screenshotURL

Availability

2.2.0

Declared In

AFAdSDKSashimiView.h

  screenshotType

Screenshot Type of the application.

@property (nonatomic, readonly) AFAdSDKAppScreenshotType screenshotType

Availability

2.2.0

Declared In

AFAdSDKSashimiView.h

  screenshotOrientation

Screenshot Orientation of the application.

@property (nonatomic, readonly) AFAdSDKAppScreenshotOrientation screenshotOrientation

Availability

2.2.0

Declared In

AFAdSDKSashimiView.h

  isFree

Is App Free.

@property (nonatomic, readonly) BOOL isFree

Availability

2.2.0

Declared In

AFAdSDKSashimiView.h

  localizedPrice

Localized price of the application.

@property (nonatomic, readonly) NSString *localizedPrice

Availability

2.2.0

Declared In

AFAdSDKSashimiView.h

  viewAppsfireBadge

The view of the appsfire badge you need to add.

@property (nonatomic, readonly) AFAdSDKAdBadgeView *viewAppsfireBadge

Availability

2.2.0

Declared In

AFAdSDKSashimiView.h

– sashimiIsReadyForInitialization

Called after the view is initialized.

- (void)sashimiIsReadyForInitialization

Availability

2.2.0

Discussion

Note: You should implement any initialization or user interface thing here.

Note: The method will be called before any draw or layout method. At this point, all properties are set and accessible.

Declared In

AFAdSDKSashimiView.h

– sashimiDidUpdateProperties

Called when one or more properties were updated while the view was already created since some time.

- (void)sashimiDidUpdateProperties

Availability

2.4.0

Discussion

Note: For example, it is possible since sdk 2.4 that the call to action changes over time.

Declared In

AFAdSDKSashimiView.h

– downloadAsset:completion:

Download an asset asynchronously.

- (void)downloadAsset:(AFAdSDKAppAssetType)asset completion:(void ( ^ ) ( UIImage *image ))completion

Parameters

asset

The asset you would like to download. The ENUM AFAdSDKAppAssetTypeIcon refers to the property iconURL, and AFAdSDKAppAssetTypeScreenshot to screenshotURL.

completion

The completion block for the callback once the asset is downloaded. If a problem occured, the image variable will be nil. Note: the block is called on the main thread.

Availability

2.4.0

Declared In

AFAdSDKSashimiView.h