AI-generated Key Takeaways
-
GMSPlaceIsOpenResponse
provides information about whether a place is currently open or closed. -
It uses the
GMSPlaceOpenStatus
enum to represent the open status of the place. -
Initialization should be done using
initWithStatus:
for testing purposes, the default init is unavailable. -
The
status
property gives access to the place's open/closed state usingGMSPlaceOpenStatus
.
GMSPlaceIsOpenResponse
@interface GMSPlaceIsOpenResponse : NSObject
The response object for the isOpenWithRequest:callback:
method.
-
Unavailable
Default init is not available. Please use the designated initializer.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Initializes the response with a given status. This is meant to be used for unit testing
- purposes.
Declaration
Swift
init(status: GMSPlaceOpenStatus)
Objective-C
- (nonnull instancetype)initWithStatus:(GMSPlaceOpenStatus)status;
-
The open status of the place.
Declaration
Swift
var status: GMSPlaceOpenStatus { get }
Objective-C
@property (nonatomic, readonly) GMSPlaceOpenStatus status;