Search documentation of mob

# Mob.Share (mob v0.6.18)

Copy Markdown View Source

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
      Mob.Share.text(socket, "Check out Mob: https://github.com/genericjam/mob")
      {:noreply, socket}
    end

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

## Summary

### Functions

text(socket, content)

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

## Functions

# text(socket, content)

    @spec text(Mob.Socket.t(), binary()) :: Mob.Socket.t()

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