Skip to main content

playmez_embed 2.0.0 copy "playmez_embed: ^2.0.0" to clipboard
playmez_embed: ^2.0.0 copied to clipboard

Put a Playmez game in your Flutter app. One widget wrapping webview_flutter that relays the game's events.

playmez_embed #

Put a Playmez game in your Flutter app (iOS and Android). One widget wrapping webview_flutter that relays the game's events. Points are virtual, non-transferable and worth nothing.

flutter pub add playmez_embed
import 'package:playmez_embed/playmez_embed.dart';

// launchUrl comes from YOUR backend, which calls POST /partner/launch with the API key. Never ship the key.
PlaymezGame(
  launchUrl: launchUrl,
  onEvent: (e) {
    if (e.type == 'result') debugPrint('${e.won ? "won" : "lost"} ${e.net} points');
  },
  onClose: () => Navigator.of(context).pop(),
)

Events: ready (game), result (game, won, net), close, error (code, message), resize (height).

Voice at shared tables (only when Playmez switched it on for you): the widget grants microphone capture to the game page; add RECORD_AUDIO on Android and NSMicrophoneUsageDescription on iOS, or pass allowMicrophone: false.

Full guide: https://playmez.com/developers

MIT © Playmez

0
likes
140
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Put a Playmez game in your Flutter app. One widget wrapping webview_flutter that relays the game's events.

Homepage
Repository (GitHub)
View/report issues

Topics

#games #webview #embed

License

MIT (license)

Dependencies

flutter, webview_flutter, webview_flutter_android, webview_flutter_wkwebview

More

Packages that depend on playmez_embed