<commit_before>---
layout: "v2_fluid/docs_base"
version: "1.2.4"
versionHref: "/docs/v2/native"
path: ""
category: native
id: "safariviewcontroller"
title: "SafariViewController"
header_sub_title: "Class in module "
doc: "SafariViewController"
docType: "class"
---








<h1 class="api-title">

  
  SafariViewController
  

  

  

</h1>

<a class="improve-v2-docs" href="http://github.com/driftyco/ionic-native/edit/master/-native/src/plugins/safari-view-controller.ts#L0">
  Improve this doc
</a>





<!-- decorators -->


<pre><code>$ ionic plugin add cordova-plugin-safariviewcontroller</code></pre>
<p>Repo:
  <a href="https://github.com/EddyVerbruggen/cordova-plugin-safariviewcontroller">
    https://github.com/EddyVerbruggen/cordova-plugin-safariviewcontroller
  </a>
</p>

<!-- description -->



<!-- @platforms tag -->
<h2>Supported platforms</h2>

<ul>
  <li>iOS</li>
  </ul>

<!-- @platforms tag end -->


<!-- @usage tag -->

<h2>Usage</h2>

<pre><code>import {SafariViewController} from &#39;ionic-native&#39;;

...

SafariViewController.isAvailable()
  .then(
    (available) =&gt; {
      if(available){

        SafariViewController.show({
          utl: &#39;http://ionic.io&#39;,
          hidden: false,
          animated: false,
          transition: &#39;curl&#39;,
          enterReaderModeIfAvailable: true,
          tintColor: &#39;#ff0000&#39;
        })
        .then(
          (result: any) =&gt; {
            if(result.event === &#39;opened&#39;) console.log(&quot;Opened&quot;);<commit_msg>Automated build of native docs driftyco/ionic-native@b307690cca2a37b4567a75e30b45d26b7cbbabfe<commit_after>---
layout: "v2_fluid/docs_base"
version: "1.2.4"
versionHref: "/docs/v2/native"
path: ""
category: native
id: "safariviewcontroller"
title: "SafariViewController"
header_sub_title: "Class in module "
doc: "SafariViewController"
docType: "class"
---








<h1 class="api-title">

  
  SafariViewController
  

  

  

</h1>

<a class="improve-v2-docs" href="http://github.com/driftyco/ionic-native/edit/master/-native/src/plugins/safari-view-controller.ts#L0">
  Improve this doc
</a>





<!-- decorators -->


<pre><code>$ ionic plugin add cordova-plugin-safariviewcontroller</code></pre>
<p>Repo:
  <a href="https://github.com/EddyVerbruggen/cordova-plugin-safariviewcontroller">
    https://github.com/EddyVerbruggen/cordova-plugin-safariviewcontroller
  </a>
</p>

<!-- description -->



<!-- @platforms tag -->
<h2>Supported platforms</h2>

<ul>
  <li>iOS</li>
  </ul>

<!-- @platforms tag end -->


<!-- @usage tag -->

<h2>Usage</h2>

<pre><code>import {SafariViewController} from &#39;ionic-native&#39;;

...

SafariViewController.isAvailable()
  .then(
    (available) =&gt; {
      if(available){

        SafariViewController.show({
          url: &#39;http://ionic.io&#39;,
          hidden: false,
          animated: false,
          transition: &#39;curl&#39;,
          enterReaderModeIfAvailable: true,
          tintColor: &#39;#ff0000&#39;
        })
        .then(
          (result: any) =&gt; {
            if(result.event === &#39;opened&#39;) console.log(&quot;Opened&quot;);
{'fraction_non_alphanumeric': 0.18121019108280254, 'fraction_numerical': 0.030573248407643312, 'mean_word_length': 3.1547619047619047, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3303545', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1141, 'n_words': 180}