GooglePlaces Framework Reference

  • GMSEvent represents an opening or closing event within a GMSPeriod , specifying the day, time, and potential date.

  • It includes a truncated property indicating if the event's time extends beyond a seven-day window from the request time.

  • GMSEvent uses GMSDayOfWeek for the day of the week and GMSTime for the time in a 24-hour format.

  • An optional date property provides the specific date of the event.

GMSEvent

  @interface 
 GMSEvent 
 : 
 NSObject 
 

A class representing a open/close event in GMSPeriod .

  • day

    Day of week the associated with the event.

    Declaration

    Swift

      var 
     day 
     : 
      GMSDayOfWeek 
     
     { 
     get 
     } 
     
    

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     readonly 
     ) 
      GMSDayOfWeek 
     
     day 
     ; 
     
    
  • The representation of time of the event in 24hr clock. 0000

    Declaration

    Swift

      var 
     time 
     : 
      GMSTime 
     
     { 
     get 
     } 
     
    

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     strong 
     , 
     readonly 
     ) 
      GMSTime 
     
     * 
     _Nonnull 
     time 
     ; 
     
    
  • The date of the event.

    Declaration

    Swift

      var 
     date 
     : 
     Date 
     ? 
     { 
     get 
     } 
     
    

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     strong 
     , 
     readonly 
     , 
     nullable 
     ) 
     NSDate 
     * 
     date 
     ; 
     
    
  • Boolean value indicating whether or not the opening or close details were truncated due to the seven day window, where the window starts at midnight of the day of the request, and ends at 11:59 pm six days later.

    Returns true if the open or close times for this period extends past this seven day window.

    Declaration

    Swift

      var 
     truncated 
     : 
     Bool 
     { 
     get 
     } 
     
    

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     readonly 
     ) 
     BOOL 
     truncated 
     ; 
     
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: