FLUTTER ECOSYSTEM

vdung7/startapp_flutter_plugin

StartApp SDK用のFlutterプラグイン

startapp_flutter_plugin のプロジェクト画像
Stars
11
Forks
8
最終プッシュ(UTC)
2020/12/19
プロジェクト状態
公開中
Dung Vu GitHub avatar
GITHUB User

Dung Vu ↗

@rtanalytics @CyberSoftTeamHo Chi Minh, Viet Nam
言語JavaDartRubyObjective-CShell

技術トピック

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 2 件

  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

Flutter - StartApp SDK Plugin

Flutter plugin for StartApp SDK.

Currently, this plugin only support Android platform. The plugin is my weekend project, so any contributes to make it better are welcome.

How to use the plugin

  • Updating AndroidManifest.xml file

Base on StartApp SDK document

Add following meta-data tag with your StartApp App Id under the section in your manifest file:

<meta-data android:name="com.startapp.sdk.APPLICATION_ID" android:value="startapp_app_id" />

If you want to disable return ads (they are enabled by default) please add following meta-data tag:

<meta-data android:name="com.startapp.sdk.RETURN_ADS_ENABLED" android:value="false" />

If you want to disable splash ads (they are enabled by default) please add following meta-data tag:

<meta-data android:name="vn.momo.plugin.startapp.SPLASH_AD_ENABLED" android:value="false" />
  • Banner as widget
import 'package:startapp/startapp.dart';
...

// StartApp AdBanner as widget
AdBanner(),
  • Load interstitial ad
import 'package:startapp/startapp.dart';
...
await StartApp.showInterstitialAd();
  • Load rewarded video ad
import 'package:startapp/startapp.dart';
...
await StartApp.showRewardedAd(onVideoCompleted: () {
    // video completed callback
}, onReceiveAd: () {
    // ad received callback
}, onFailedToReceiveAd: (String error) {
    // failed to received ad callback
});

Support

If this package was helpful to you in delivering on your project or you just wanna to support this project, a cup of coffee would be highly appreciated ;-)

Buy me a coffee