--- layout: "fluid/docs_base" version: "<$ version.current.name $>" versionHref: "<$ version.current.href.replace('content/','') $>" path: "<$ doc.path $>" category: native id: "<$ doc.name|lower|replace(' ','-') $>" title: "<@ if doc.docType == "directive" @><$ doc.name | dashCase $><@ else @><$ doc.name $><@ endif @>" header_sub_title: "<$ doc.docType | capital $> in module <$ doc.module $>" doc: "<$ doc.name $>" docType: "<$ doc.docType $>" --- <@- macro interfaceTable(interface) -@> <@ for export in doc.moduleDoc.exports -@> <@ if export.name == interface @>
Param | Type | Details |
---|---|---|
<$ param.name $> |
<$ param.returnType | escape $>
|
<$ param.description | marked $> <@ if param.optional @>(optional)<@ endif @> |
<@ if isDirective @>Attr<@ else @>Param<@ endif @> | Type | Details |
---|---|---|
<$ param.name $> <@- if param.alias @>| <$ param.alias $><@ endif -@> | <$ typeList(param.typeList) $> |
<$ param.description | marked $> <@- if param.defaultValue @>
(default: <$ param.defaultValue $>) <@ endif -@> |
<$ fn.name $><@- if not fn.isProperty @>(<@ endif -@><@- for param in fn.params @><$ sep() $> <@- if
param.type.optional @>[<@- endif -@> <$ param.name $> <@- if param.type.optional -@>]<@- endif -@> <@- endfor -@><@-
if not fn.isProperty @>)<@- endif -@>
<@- endmacro -@> <@- macro typeList(types) -@> <@ set separator = joiner("|") @> <@- for type in types @><$ separator()
$><$ type | code $><@ endfor -@> <@- endmacro -@> <@- macro typeInfo(fn) -@> <$ typeList(fn.typeList) $> <$
fn.description $> <@- endmacro -@> <@- macro documentPlatforms(method) -@> <@- if method.decorators @> <@ for prop in
method.decorators[0].argumentInfo @> <@ if prop.platforms @>
Platforms: <@- for platform in prop.platforms -@> <$ platform $> <@- endfor -@>
<@ endif @> <@ endfor @> <@- endif @> <@- endmacro -@> <@ macro documentMethod(method) -@>This plugin is still in beta stage and may not work as expected. Please submit any issues to the plugin repo.
<@ endif @> <@ if doc.paid == true @>This plugin might require a paid license, or might take a share of your app's earnings. Check the plugin's repo for more information.
<@ endif @> <# --- Plugin description --- #> <$ doc.description | marked $>Repo: <$ prop.repo $>
<# --- Install commands --- #>$ <@ if prop.install @><$ prop.install | replace('<', '<').replace('>', '>') $><@ else @>ionic cordova plugin add <$ prop.plugin $><@ endif @>
$ npm install @ionic-native/<$ doc.npmId $>
Attribute | <@ set hasTypes = false @> <@ for prop in doc.properties @> <@ if prop.type @> <@ set hasTypes = true @> <@ endif @> <@ endfor @> <@ if hasTypes @>Type | <@ endif @>Description |
---|---|---|
<$ prop.name $> | <@ if hasTypes @><$ prop.type.name $> | <@ endif @><$ prop.description $> |