-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyles.go
60 lines (48 loc) · 1.84 KB
/
styles.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package passbook
// Barcode format.
type BarcodeFormat string
// Supported Barcode formats.
const (
PKBarcodeFormatQR BarcodeFormat = "PKBarcodeFormatQR"
PKBarcodeFormatPDF417 = "PKBarcodeFormatPDF417"
PKBarcodeFormatAztec = "PKBarcodeFormatAztec"
)
type DataDetector string
const (
PKDataDetectorTypePhoneNumber DataDetector = "PKDataDetectorTypePhoneNumber"
PKDataDetectorTypeLink = "PKDataDetectorTypeLink"
PKDataDetectorTypeAddress = "PKDataDetectorTypeAddress"
PKDataDetectorTypeCalendarEvent = "PKDataDetectorTypeCalendarEvent"
)
type TextAlignment string
const (
PKTextAlignmentNatural TextAlignment = "PKTextAlignmentNatural"
PKTextAlignmentLeft = "PKTextAlignmentLeft"
PKTextAlignmentCenter = "PKTextAlignmentCenter"
PKTextAlignmentRight = "PKTextAlignmentRight"
)
type DateTimeStyle string
const (
PKDateStyleNone DateTimeStyle = "PKDateStyleNone"
PKDateStyleShort = "PKDateStyleShort"
PKDateStyleMedium = "PKDateStyleMedium"
PKDateStyleLong = "PKDateStyleLong"
PKDateStyleFull = "PKDateStyleFull"
)
// Type of transit
type TransitType string
// Supported types of transit
const (
PKTransitTypeAir TransitType = "PKTransitTypeAir"
PKTransitTypeBoat = "PKTransitTypeBoat"
PKTransitTypeBus = "PKTransitTypeBus"
PKTransitTypeGeneric = "PKTransitTypeGeneric"
PKTransitTypeTrain = "PKTransitTypeTrain"
)
type NumberStyle string
const (
PKNumberStyleDecimal NumberStyle = "PKNumberStyleDecimal"
PKNumberStylePercent = "PKNumberStylePercent"
PKNumberStyleScientific = "PKNumberStyleScientific"
PKNumberStyleSpellOut = "PKNumberStyleSpellOut"
)