Exemple #1
0
        /// <summary>
        /// Optional. Information specific to the pass’s barcode. The system uses the first valid barcode dictionary in the array. Additional dictionaries can be added as fallbacks.
        /// </summary>
        /// <remarks>
        /// Available in iOS 9.0.
        /// </remarks>
        public static PassBuilder.VisualAppearanceBuilder Barcodes(this PassBuilder.VisualAppearanceBuilder builder, string message, BarcodeFormat format, string?altText = null, string?messageEncoding = null)
        {
            var value = new PassBuilder.Barcode(message, format)
            {
                AltText = altText,
            };

            if (messageEncoding != null)
            {
                value.MessageEncoding = messageEncoding;
            }

            return(Barcodes(builder, value));
        }
Exemple #2
0
 /// <summary>
 /// Optional. Text displayed next to the logo on the pass.
 /// </summary>
 public static PassBuilder.VisualAppearanceBuilder LogoText(this PassBuilder.VisualAppearanceBuilder builder, string value)
 {
     builder.SetValue(PassBuilder.GetCaller(), value);
     return(builder);
 }
Exemple #3
0
 /// <summary>
 /// Optional for event tickets and boarding passes; otherwise not allowed.
 /// Identifier used to group related passes. If a grouping identifier is specified, passes with the same style, pass type identifier, and grouping identifier are displayed as a group. Otherwise, passes are grouped automatically.
 /// Use this to group passes that are tightly related, such as the boarding passes for different connections of the same trip.
 /// </summary>
 public static PassBuilder.VisualAppearanceBuilder GroupingIdentifier(this PassBuilder.VisualAppearanceBuilder builder, string value)
 {
     builder.SetValue(PassBuilder.GetCaller(), value);
     return(builder);
 }
Exemple #4
0
 /// <summary>
 /// Optional. Foreground color of the pass, specified as an CSS-style RGB triple.
 /// </summary>
 /// <example>Example: <code>rgb(23, 187, 82)</code>.</example>
 public static PassBuilder.VisualAppearanceBuilder ForegroundColor(this PassBuilder.VisualAppearanceBuilder builder, string value)
 {
     builder.SetValue(PassBuilder.GetCaller(), value);
     return(builder);
 }
Exemple #5
0
 /// <summary>
 /// Optional. Information specific to the pass’s barcode. The system uses the first valid barcode dictionary in the array. Additional dictionaries can be added as fallbacks.
 /// </summary>
 /// <remarks>
 /// Available in iOS 9.0.
 /// </remarks>
 public static PassBuilder.VisualAppearanceBuilder Barcodes(this PassBuilder.VisualAppearanceBuilder builder, PassBuilder.Barcode value)
 {
     builder.AppendValue(PassBuilder.GetCaller(), value);
     return(builder);
 }