# `Dala.Share`
[🔗](https://github.com/manhvu/dala/blob/main/lib/dala/share.ex#L1)

System share sheet. Opens the OS share dialog with a piece of content.
Fire-and-forget — no response arrives in the BEAM.

## Usage

    def handle_event("share", _params, socket) do
      Dala.Share.text(socket, "Check out Dala: https://github.com/genericjam/dala")
      {:noreply, socket}
    end

iOS: `UIActivityViewController`
Android: `Intent.ACTION_SEND` via `Intent.createChooser`

# `text`

```elixir
@spec text(Dala.Socket.t(), binary()) :: Dala.Socket.t()
```

Open the share sheet with plain text. Returns the socket unchanged.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
