title: What is the correct way to pass an Enum as an argument to a Fragment using Navigation Component safeargs
body: <p>The <a href="https://developer.android.com/topic/libraries/architecture/navigation/navigation-pass-data" rel="noreferrer">documentation</a> discusses how to send simple integers and strings. For example:</p>
  
  <pre><code>&lt;argument
      android:name="myIntArg"
      android:defaultValue="255"
      app:argType="integer" /&gt;
  </code></pre>
  
  <p>In the origin Fragment:</p>
  
  <pre><code>val action = OriginFragmentDirections.myAction(myInt)
  findNavController().navigate(action)
  </code></pre>
  
  <p>In the destination Fragment:</p>
  
  <pre><code>val receivedInt = DestinationFragmentArgs.fromBundle(arguments).myIntArg
  </code></pre>
  
  <p>But say instead of <code>myIntArg</code>, I wanted to send an enum (<code>myEnumArg</code>). How would I do that? What <strong><code>app:argType</code></strong> would I use in my argument?</p>