@@ -47,30 +47,40 @@ def web_service_url
47
47
"#{ ENV [ "PASSKIT_WEB_SERVICE_HOST" ] } /passkit/api"
48
48
end
49
49
50
+ # The foreground color, used for the values of fields shown on the front of the pass.
50
51
def foreground_color
51
52
# black
52
53
"rgb(0, 0, 0)"
53
54
end
54
55
56
+ # The background color, used for the background of the front and back of the pass.
57
+ # If you provide a background image, any background color is ignored.
55
58
def background_color
56
59
# white
57
60
"rgb(255, 255, 255)"
58
61
end
59
62
63
+ # The label color, used for the labels of fields shown on the front of the pass.
60
64
def label_color
61
65
# black
62
66
"rgb(0, 0, 0)"
63
67
end
64
68
69
+ # The organization name is displayed on the lock screen when your pass is relevant and by apps such as Mail which
70
+ # act as a conduit for passes. The value for the organizationName key in the pass specifies the organization name.
71
+ # Choose a name that users recognize and associate with your organization or company.
65
72
def organization_name
66
73
"Passkit"
67
74
end
68
75
76
+ # The description lets VoiceOver make your pass accessible to blind and low-vision users. The value for the
77
+ # description key in the pass specifies the description.
78
+ # @see https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/Creating.html
69
79
def description
70
80
"A basic description for a pass"
71
81
end
72
82
73
- # A pass can have up to ten relevant locations
83
+ # An array of up to 10 latitudes and longitudes. iOS uses these locations to determine when to display the pass on the lock screen
74
84
#
75
85
# @see https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/Creating.html
76
86
def locations
@@ -133,7 +143,7 @@ def event_ticket
133
143
134
144
# Date and time the pass expires, must include
135
145
# days, hours and minutes (seconds are optional)
136
- # Returns a String representing the date and time in W3C format
146
+ # Returns a String representing the date and time in W3C format ("%Y-%m-%dT%H:%M:%S%z")
137
147
def expiration_date
138
148
end
139
149
@@ -157,7 +167,7 @@ def nfc
157
167
# Date and time when the pass becomes relevant and should be
158
168
# displayed, must include days, hours and minutes
159
169
# (seconds are optional)
160
- # Returns a String representing the date and time in W3C format
170
+ # Returns a String representing the date and time in W3C format ("%Y-%m-%dT%H:%M:%S%z")
161
171
def relevant_date
162
172
end
163
173
0 commit comments