Inherits from UIView
Declared in FBNativeAd.h

Overview

@class FBAdStarRatingView

@abstract Helper view that draws a star rating based off a native ad.

Properties

primaryColor

The color drawn for filled-in stars. Defaults to yellow.

@property (strong, nonatomic, nonnull) UIColor *primaryColor

Declared In

FBNativeAd.h

rating

The current rating from an FBNativeAd. When set, updates the view.

@property (nonatomic) struct FBAdStarRating rating

Declared In

FBNativeAd.h

secondaryColor

The color drawn for empty stars. Defaults to gray.

@property (strong, nonatomic, nonnull) UIColor *secondaryColor

Declared In

FBNativeAd.h

Instance Methods

initWithFrame:withStarRating:

@method

- (nonnull instancetype)initWithFrame:(CGRect)frame withStarRating:(struct FBAdStarRating)starRating

Parameters

frame

Frame of this view.

starRating

Star rating from a native ad.

Discussion

@abstract Initializes a star rating view with a given frame and star rating.

Declared In

FBNativeAd.h