YMARating

Objective-C

@protocol YMARating <NSObject>

Swift

protocol YMARating : NSObjectProtocol

The protocol sets and receives the rating value.

  1. Methods
  2. -setRating:
  3. -rating

Methods

-setRating:

Sets the rating value in the range [0; 5].

Declaration

Objective-C

- (void)setRating:(nullable NSNumber *)rating;

Swift

func setRating(_ rating: NSNumber?)

Parameters

rating

The rating value in the range [0; 5].

rating

The rating value in the range [0; 5].

-rating

Returns the rating value in the range [0; 5].

Declaration

Objective-C

- (nullable NSNumber *)rating;

Swift

func rating() -> NSNumber?

Return Value

Rating value.