Skip to contents

Apple Web App Meta Tags

Usage

meta_apple_web_app(
  .meta = meta(),
  title = NULL,
  capable = NULL,
  status_bar_style = c("default", "black", "black-translucent")
)

Arguments

.meta

A meta object created by meta() or as_meta(), or returned by a meta_*() object.

title

Launch Icon Title

capable

Enables standalone (full-screen) mode if TRUE

status_bar_style

Status bar appearance. has no effect unless standalone more is enabled (see capable).

"If content is set to default, the status bar appears normal. If set to black, the status bar has a black background. If set to black-translucent, the status bar is black and translucent. If set to default or black, the web content is displayed below the status bar. If set to black-translucent, the web content is displayed on the entire screen, partially obscured by the status bar. The default value is default."

Value

A meta object, or a set of <meta> HTML tags inside an HTML <head> tag. For use in rmarkdown::html_document(), shiny::runApp(), or other HTML locations.

Examples

meta() %>%
  meta_apple_web_app(
    title = "My Fancy App",
    capable = TRUE,
    status_bar_style = "black-translucent"
  )
#> <meta name="apple-mobile-web-app-title" content="My Fancy App"/>
#> <meta name="apple-mobile-web-app-capable" content="yes"/>
#> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>