-
@Stable() public final class ContentBlockSPEC-070-A J.10 —
@Stable, not@Immutable: ContentBlock still carries passthrough JSON Map/Any? fields per J.22 EXCLUDE rules (lottie_json,custom_config,field_config,icon_ref: Any?,bindings) that we deliberately don't migrate — they're caller-supplied JSON bags consumed by specialized renderers, not Compose-iterated lists.SPEC-070-A J.22 — typed iterable fields (
children,items,providers,timeline_items,loading_items,field_options,pricing_plans,columns,size_range) are migrated to ImmutableList<T> below so Compose can short-circuit recompositions when contents are structurally equal.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ContentBlock(String id, String type, String text, Integer level, String image_url, String alt, String image_fit, Double corner_radius, Double height, String variant, String action, String action_value, String bg_color, String text_color, Double button_corner_radius, Double spacer_height, ImmutableList<String> items, String list_style, String divider_color, Double divider_thickness, Double divider_margin_y, String badge_text, String badge_bg_color, String badge_text_color, Double badge_corner_radius, String badge_position, Double badge_size, String image_shape, Double image_corner_radius, String icon_emoji, Double icon_size, String icon_alignment, String toggle_label, String toggle_description, Boolean toggle_default, String video_thumbnail_url, TextStyleConfig style, String video_url, Double video_height, Double video_corner_radius, String lottie_url, Map<String, Object> lottie_json, Boolean lottie_autoplay, Boolean lottie_loop, Float lottie_speed, Boolean play_on_scroll, Boolean play_on_tap, Map<String, String> color_overrides, Double lottie_width, Double lottie_height, String rive_url, String rive_artboard, String rive_state_machine, String artboard, String state_machine, Map<String, Object> rive_inputs, String trigger_on_step_complete, Object icon_ref, Boolean video_autoplay, Boolean video_loop, Boolean video_muted, Boolean autoplay, Boolean loop, Boolean muted, Boolean controls, Boolean inline_playback, BlockStyle block_style, String vertical_align, String horizontal_align, Double vertical_offset, Double horizontal_offset, String zone, Integer dot_count, Integer active_index, String active_color, String inactive_color, Double dot_size, Double dot_spacing, Double active_dot_width, ImmutableList<SocialProvider> providers, String button_style, Double button_height, Double spacing, Boolean show_divider, String divider_text, String email_login_placement, Double email_cta_spacing_below, String target_type, Integer duration_seconds, String target_datetime, Boolean show_days, Boolean show_hours, Boolean show_minutes, Boolean show_seconds, CountdownLabels labels, String on_expire_action, String expired_text, String accent_color, Double font_size, String alignment, String field_id, Integer max_stars, Double default_value, Double star_size, String active_rating_color, String inactive_rating_color, Boolean allow_half, String label, String filled_color, String empty_color, Double default_rating, String rating_label, String content, String markdown_content, TextStyleConfig base_style, String rich_text_variant, String link_color, Integer max_lines, Integer segment_count, Integer active_segments, Integer filled_segments, Integer total_segments, Double progress_value, String progress_variant, String bar_color, Double bar_height, String fill_color, String track_color, Double segment_gap, Boolean show_label, TextStyleConfig label_style, ImmutableList<TimelineItem> timeline_items, String line_color, String completed_color, String current_color, String upcoming_color, Boolean show_line, Boolean compact, TextStyleConfig title_style, TextStyleConfig subtitle_style, ImmutableList<LoadingItem> loading_items, String progress_color, String check_color, Integer total_duration_ms, Boolean auto_advance, Boolean show_percentage, String loading_variant, Double gauge_value, Double max_gauge_value, Double max_value, String gauge_variant, String gradient_start_color, String gradient_end_color, String arrow_color, Double arrow_stroke_width, String min_label, String max_label, Double min_max_font_size, String min_max_color, String percentage_location, String sublabel, Double stroke_width, String label_color, Double label_font_size, Boolean animate, Integer animation_duration_ms, ImmutableList<DateWheelColumn> columns, String default_date_value, String min_date, String max_date, String highlight_color, Boolean haptic_on_scroll, ImmutableList<ContentBlock> children, ImmutableList<ContentBlock> stack_children, Double z_index, Double gap, Boolean wrap, String justify, String align_items, String row_direction, String row_distribution, Boolean row_child_fill, String column_ratios, String view_key, Map<String, Object> custom_config, String placeholder_image_url, String placeholder_text, String particle_type, String density, String speed, String secondary_color, ImmutableList<Double> size_range, Boolean fullscreen, Double min_value, Double max_value_picker, Double step_value, Double default_picker_value, String unit, String unit_position, Integer visible_items, String wheel_orientation, String orientation, String pulse_color, Integer pulse_ring_count, Double pulse_speed, Double border_width, String border_color, ImmutableList<PricingPlan> pricing_plans, String pricing_layout, String field_label, String field_placeholder, Boolean field_required, Boolean multi_select, Boolean allow_future, Boolean allow_past, String date_validation_message, String picker_presentation, String picker_mode, Double picker_spacing, String wheel_bg_color, Double wheel_height, String calendar_bg_color, Boolean collapse_on_scroll, FormFieldBlockStyle field_style, ImmutableList<InputOption> field_options, Map<String, Object> field_config, VisibilityCondition visibility_condition, EntranceAnimationConfig entrance_animation, PressedStyleConfig pressed_style, Map<String, String> bindings, String element_width, String element_height, String overflow)
-
Method Summary
-
-
Constructor Detail
-
ContentBlock
ContentBlock(String id, String type, String text, Integer level, String image_url, String alt, String image_fit, Double corner_radius, Double height, String variant, String action, String action_value, String bg_color, String text_color, Double button_corner_radius, Double spacer_height, ImmutableList<String> items, String list_style, String divider_color, Double divider_thickness, Double divider_margin_y, String badge_text, String badge_bg_color, String badge_text_color, Double badge_corner_radius, String badge_position, Double badge_size, String image_shape, Double image_corner_radius, String icon_emoji, Double icon_size, String icon_alignment, String toggle_label, String toggle_description, Boolean toggle_default, String video_thumbnail_url, TextStyleConfig style, String video_url, Double video_height, Double video_corner_radius, String lottie_url, Map<String, Object> lottie_json, Boolean lottie_autoplay, Boolean lottie_loop, Float lottie_speed, Boolean play_on_scroll, Boolean play_on_tap, Map<String, String> color_overrides, Double lottie_width, Double lottie_height, String rive_url, String rive_artboard, String rive_state_machine, String artboard, String state_machine, Map<String, Object> rive_inputs, String trigger_on_step_complete, Object icon_ref, Boolean video_autoplay, Boolean video_loop, Boolean video_muted, Boolean autoplay, Boolean loop, Boolean muted, Boolean controls, Boolean inline_playback, BlockStyle block_style, String vertical_align, String horizontal_align, Double vertical_offset, Double horizontal_offset, String zone, Integer dot_count, Integer active_index, String active_color, String inactive_color, Double dot_size, Double dot_spacing, Double active_dot_width, ImmutableList<SocialProvider> providers, String button_style, Double button_height, Double spacing, Boolean show_divider, String divider_text, String email_login_placement, Double email_cta_spacing_below, String target_type, Integer duration_seconds, String target_datetime, Boolean show_days, Boolean show_hours, Boolean show_minutes, Boolean show_seconds, CountdownLabels labels, String on_expire_action, String expired_text, String accent_color, Double font_size, String alignment, String field_id, Integer max_stars, Double default_value, Double star_size, String active_rating_color, String inactive_rating_color, Boolean allow_half, String label, String filled_color, String empty_color, Double default_rating, String rating_label, String content, String markdown_content, TextStyleConfig base_style, String rich_text_variant, String link_color, Integer max_lines, Integer segment_count, Integer active_segments, Integer filled_segments, Integer total_segments, Double progress_value, String progress_variant, String bar_color, Double bar_height, String fill_color, String track_color, Double segment_gap, Boolean show_label, TextStyleConfig label_style, ImmutableList<TimelineItem> timeline_items, String line_color, String completed_color, String current_color, String upcoming_color, Boolean show_line, Boolean compact, TextStyleConfig title_style, TextStyleConfig subtitle_style, ImmutableList<LoadingItem> loading_items, String progress_color, String check_color, Integer total_duration_ms, Boolean auto_advance, Boolean show_percentage, String loading_variant, Double gauge_value, Double max_gauge_value, Double max_value, String gauge_variant, String gradient_start_color, String gradient_end_color, String arrow_color, Double arrow_stroke_width, String min_label, String max_label, Double min_max_font_size, String min_max_color, String percentage_location, String sublabel, Double stroke_width, String label_color, Double label_font_size, Boolean animate, Integer animation_duration_ms, ImmutableList<DateWheelColumn> columns, String default_date_value, String min_date, String max_date, String highlight_color, Boolean haptic_on_scroll, ImmutableList<ContentBlock> children, ImmutableList<ContentBlock> stack_children, Double z_index, Double gap, Boolean wrap, String justify, String align_items, String row_direction, String row_distribution, Boolean row_child_fill, String column_ratios, String view_key, Map<String, Object> custom_config, String placeholder_image_url, String placeholder_text, String particle_type, String density, String speed, String secondary_color, ImmutableList<Double> size_range, Boolean fullscreen, Double min_value, Double max_value_picker, Double step_value, Double default_picker_value, String unit, String unit_position, Integer visible_items, String wheel_orientation, String orientation, String pulse_color, Integer pulse_ring_count, Double pulse_speed, Double border_width, String border_color, ImmutableList<PricingPlan> pricing_plans, String pricing_layout, String field_label, String field_placeholder, Boolean field_required, Boolean multi_select, Boolean allow_future, Boolean allow_past, String date_validation_message, String picker_presentation, String picker_mode, Double picker_spacing, String wheel_bg_color, Double wheel_height, String calendar_bg_color, Boolean collapse_on_scroll, FormFieldBlockStyle field_style, ImmutableList<InputOption> field_options, Map<String, Object> field_config, VisibilityCondition visibility_condition, EntranceAnimationConfig entrance_animation, PressedStyleConfig pressed_style, Map<String, String> bindings, String element_width, String element_height, String overflow)
-
-
Method Detail
-
getImage_url
final String getImage_url()
-
getImage_fit
final String getImage_fit()
-
getCorner_radius
final Double getCorner_radius()
-
getVariant
final String getVariant()
-
getAction_value
final String getAction_value()
-
getBg_color
final String getBg_color()
-
getText_color
final String getText_color()
-
getButton_corner_radius
final Double getButton_corner_radius()
-
getSpacer_height
final Double getSpacer_height()
-
getList_style
final String getList_style()
-
getDivider_color
final String getDivider_color()
-
getDivider_thickness
final Double getDivider_thickness()
-
getDivider_margin_y
final Double getDivider_margin_y()
-
getBadge_text
final String getBadge_text()
-
getBadge_bg_color
final String getBadge_bg_color()
-
getBadge_text_color
final String getBadge_text_color()
-
getBadge_corner_radius
final Double getBadge_corner_radius()
-
getBadge_position
final String getBadge_position()
-
getBadge_size
final Double getBadge_size()
-
getImage_shape
final String getImage_shape()
-
getImage_corner_radius
final Double getImage_corner_radius()
-
getIcon_emoji
final String getIcon_emoji()
-
getIcon_size
final Double getIcon_size()
-
getIcon_alignment
final String getIcon_alignment()
-
getToggle_label
final String getToggle_label()
-
getToggle_description
final String getToggle_description()
-
getToggle_default
final Boolean getToggle_default()
-
getVideo_thumbnail_url
final String getVideo_thumbnail_url()
-
getStyle
final TextStyleConfig getStyle()
-
getVideo_url
final String getVideo_url()
-
getVideo_height
final Double getVideo_height()
-
getVideo_corner_radius
final Double getVideo_corner_radius()
-
getLottie_url
final String getLottie_url()
-
getLottie_json
final Map<String, Object> getLottie_json()
-
getLottie_autoplay
final Boolean getLottie_autoplay()
-
getLottie_loop
final Boolean getLottie_loop()
-
getLottie_speed
final Float getLottie_speed()
-
getPlay_on_scroll
final Boolean getPlay_on_scroll()
-
getPlay_on_tap
final Boolean getPlay_on_tap()
-
getColor_overrides
final Map<String, String> getColor_overrides()
-
getLottie_width
final Double getLottie_width()
-
getLottie_height
final Double getLottie_height()
SPEC-401-A R10 — iOS canonical Lottie-specific height field (ContentBlockRendererView.swift:599
block.lottie_height ?? block.height ?? 160). When bothlottie_heightand a genericheightare authored, lottie_height takes precedence so the same payload renders the same vertical dimension on both natives.
-
getRive_url
final String getRive_url()
-
getRive_artboard
final String getRive_artboard()
-
getRive_state_machine
final String getRive_state_machine()
-
getArtboard
final String getArtboard()
-
getState_machine
final String getState_machine()
-
getRive_inputs
final Map<String, Object> getRive_inputs()
-
getTrigger_on_step_complete
final String getTrigger_on_step_complete()
-
getIcon_ref
final Object getIcon_ref()
-
getVideo_autoplay
final Boolean getVideo_autoplay()
-
getVideo_loop
final Boolean getVideo_loop()
-
getVideo_muted
final Boolean getVideo_muted()
-
getAutoplay
final Boolean getAutoplay()
-
getControls
final Boolean getControls()
-
getInline_playback
final Boolean getInline_playback()
-
getBlock_style
final BlockStyle getBlock_style()
-
getVertical_align
final String getVertical_align()
-
getHorizontal_align
final String getHorizontal_align()
-
getVertical_offset
final Double getVertical_offset()
-
getHorizontal_offset
final Double getHorizontal_offset()
-
getDot_count
final Integer getDot_count()
-
getActive_index
final Integer getActive_index()
-
getActive_color
final String getActive_color()
-
getInactive_color
final String getInactive_color()
-
getDot_size
final Double getDot_size()
-
getDot_spacing
final Double getDot_spacing()
-
getActive_dot_width
final Double getActive_dot_width()
-
getProviders
final ImmutableList<SocialProvider> getProviders()
-
getButton_style
final String getButton_style()
-
getButton_height
final Double getButton_height()
-
getSpacing
final Double getSpacing()
-
getShow_divider
final Boolean getShow_divider()
-
getDivider_text
final String getDivider_text()
-
getEmail_login_placement
final String getEmail_login_placement()
-
getEmail_cta_spacing_below
final Double getEmail_cta_spacing_below()
-
getTarget_type
final String getTarget_type()
-
getDuration_seconds
final Integer getDuration_seconds()
-
getTarget_datetime
final String getTarget_datetime()
-
getShow_days
final Boolean getShow_days()
-
getShow_hours
final Boolean getShow_hours()
-
getShow_minutes
final Boolean getShow_minutes()
-
getShow_seconds
final Boolean getShow_seconds()
-
getLabels
final CountdownLabels getLabels()
-
getOn_expire_action
final String getOn_expire_action()
-
getExpired_text
final String getExpired_text()
-
getAccent_color
final String getAccent_color()
-
getFont_size
final Double getFont_size()
-
getAlignment
final String getAlignment()
-
getField_id
final String getField_id()
-
getMax_stars
final Integer getMax_stars()
-
getDefault_value
final Double getDefault_value()
-
getStar_size
final Double getStar_size()
-
getActive_rating_color
final String getActive_rating_color()
-
getInactive_rating_color
final String getInactive_rating_color()
-
getAllow_half
final Boolean getAllow_half()
-
getFilled_color
final String getFilled_color()
-
getEmpty_color
final String getEmpty_color()
-
getDefault_rating
final Double getDefault_rating()
-
getRating_label
final String getRating_label()
-
getContent
final String getContent()
-
getMarkdown_content
final String getMarkdown_content()
-
getBase_style
final TextStyleConfig getBase_style()
-
getRich_text_variant
final String getRich_text_variant()
-
getLink_color
final String getLink_color()
-
getMax_lines
final Integer getMax_lines()
-
getSegment_count
final Integer getSegment_count()
-
getActive_segments
final Integer getActive_segments()
-
getFilled_segments
final Integer getFilled_segments()
-
getTotal_segments
final Integer getTotal_segments()
-
getProgress_value
final Double getProgress_value()
-
getProgress_variant
final String getProgress_variant()
-
getBar_color
final String getBar_color()
-
getBar_height
final Double getBar_height()
-
getFill_color
final String getFill_color()
-
getTrack_color
final String getTrack_color()
-
getSegment_gap
final Double getSegment_gap()
-
getShow_label
final Boolean getShow_label()
-
getLabel_style
final TextStyleConfig getLabel_style()
-
getTimeline_items
final ImmutableList<TimelineItem> getTimeline_items()
-
getLine_color
final String getLine_color()
-
getCompleted_color
final String getCompleted_color()
-
getCurrent_color
final String getCurrent_color()
-
getUpcoming_color
final String getUpcoming_color()
-
getShow_line
final Boolean getShow_line()
-
getCompact
final Boolean getCompact()
-
getTitle_style
final TextStyleConfig getTitle_style()
-
getSubtitle_style
final TextStyleConfig getSubtitle_style()
-
getLoading_items
final ImmutableList<LoadingItem> getLoading_items()
-
getProgress_color
final String getProgress_color()
-
getCheck_color
final String getCheck_color()
-
getTotal_duration_ms
final Integer getTotal_duration_ms()
-
getAuto_advance
final Boolean getAuto_advance()
-
getShow_percentage
final Boolean getShow_percentage()
-
getLoading_variant
final String getLoading_variant()
-
getGauge_value
final Double getGauge_value()
-
getMax_gauge_value
final Double getMax_gauge_value()
-
getMax_value
final Double getMax_value()
-
getGauge_variant
final String getGauge_variant()
-
getGradient_start_color
final String getGradient_start_color()
-
getGradient_end_color
final String getGradient_end_color()
-
getArrow_color
final String getArrow_color()
-
getArrow_stroke_width
final Double getArrow_stroke_width()
-
getMin_label
final String getMin_label()
-
getMax_label
final String getMax_label()
-
getMin_max_font_size
final Double getMin_max_font_size()
-
getMin_max_color
final String getMin_max_color()
-
getPercentage_location
final String getPercentage_location()
-
getSublabel
final String getSublabel()
-
getStroke_width
final Double getStroke_width()
-
getLabel_color
final String getLabel_color()
-
getLabel_font_size
final Double getLabel_font_size()
-
getAnimate
final Boolean getAnimate()
-
getAnimation_duration_ms
final Integer getAnimation_duration_ms()
-
getColumns
final ImmutableList<DateWheelColumn> getColumns()
-
getDefault_date_value
final String getDefault_date_value()
-
getMin_date
final String getMin_date()
-
getMax_date
final String getMax_date()
-
getHighlight_color
final String getHighlight_color()
-
getHaptic_on_scroll
final Boolean getHaptic_on_scroll()
-
getChildren
final ImmutableList<ContentBlock> getChildren()
-
getStack_children
final ImmutableList<ContentBlock> getStack_children()
-
getZ_index
final Double getZ_index()
-
getJustify
final String getJustify()
-
getAlign_items
final String getAlign_items()
-
getRow_direction
final String getRow_direction()
-
getRow_distribution
final String getRow_distribution()
-
getRow_child_fill
final Boolean getRow_child_fill()
-
getColumn_ratios
final String getColumn_ratios()
-
getView_key
final String getView_key()
-
getCustom_config
final Map<String, Object> getCustom_config()
-
getPlaceholder_image_url
final String getPlaceholder_image_url()
-
getPlaceholder_text
final String getPlaceholder_text()
-
getParticle_type
final String getParticle_type()
-
getDensity
final String getDensity()
-
getSecondary_color
final String getSecondary_color()
-
getSize_range
final ImmutableList<Double> getSize_range()
-
getFullscreen
final Boolean getFullscreen()
-
getMin_value
final Double getMin_value()
-
getMax_value_picker
final Double getMax_value_picker()
-
getStep_value
final Double getStep_value()
-
getDefault_picker_value
final Double getDefault_picker_value()
-
getUnit_position
final String getUnit_position()
-
getVisible_items
final Integer getVisible_items()
-
getWheel_orientation
final String getWheel_orientation()
-
getOrientation
final String getOrientation()
-
getPulse_color
final String getPulse_color()
-
getPulse_ring_count
final Integer getPulse_ring_count()
-
getPulse_speed
final Double getPulse_speed()
-
getBorder_width
final Double getBorder_width()
-
getBorder_color
final String getBorder_color()
-
getPricing_plans
final ImmutableList<PricingPlan> getPricing_plans()
-
getPricing_layout
final String getPricing_layout()
-
getField_label
final String getField_label()
-
getField_placeholder
final String getField_placeholder()
-
getField_required
final Boolean getField_required()
-
getMulti_select
final Boolean getMulti_select()
-
getAllow_future
final Boolean getAllow_future()
-
getAllow_past
final Boolean getAllow_past()
-
getDate_validation_message
final String getDate_validation_message()
-
getPicker_presentation
final String getPicker_presentation()
-
getPicker_mode
final String getPicker_mode()
-
getPicker_spacing
final Double getPicker_spacing()
-
getWheel_bg_color
final String getWheel_bg_color()
-
getWheel_height
final Double getWheel_height()
-
getCalendar_bg_color
final String getCalendar_bg_color()
-
getCollapse_on_scroll
final Boolean getCollapse_on_scroll()
-
getField_style
final FormFieldBlockStyle getField_style()
-
getField_options
final ImmutableList<InputOption> getField_options()
-
getField_config
final Map<String, Object> getField_config()
-
getVisibility_condition
final VisibilityCondition getVisibility_condition()
-
getEntrance_animation
final EntranceAnimationConfig getEntrance_animation()
-
getPressed_style
final PressedStyleConfig getPressed_style()
-
getBindings
final Map<String, String> getBindings()
-
getElement_width
final String getElement_width()
-
getElement_height
final String getElement_height()
-
getOverflow
final String getOverflow()
-
-
-
-