Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

crazecoder/flutter_mintegral

Repository files navigation

flutter_mintegral

flutter_mintegral, Just support android, Welcome to the fork and develop ios version

Getting Started

dependencies:
 flutter_mintegral:
 git:
 url: git://github.com/crazecoder/flutter_mintegral.git

Splash for native

Create SplashActivity.class

public class SplashActivity extends SplashAdAbstractActivity {
 @Override
 protected String getAppId() {
 return "xxxxx";
 }
 @Override
 protected String getAppKey() {
 return "xxxxxx";
 }
 @Override
 protected String getAdUnitId() {
 return "xxxxx";
 }
 @Override
 protected String getAdPlacementId() {
 return "xxxx";
 }
 @Override
 protected boolean isProtectGDPR() {
 return false;
 }
 @Override
 protected boolean isProtectCCPA() {
 return false;
 }
 @Override
 protected Integer getLaunchBackground() {
 return null;
 }
}

startActivity in MainActivity.class

public class MainActivity extends FlutterActivity {
 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 Intent intent = new Intent(this, SplashActivity.class);
 startActivity(intent);
 }
}

Splash for flutter

FlutterMintegral.initSdk({
 String appId,
 String appKey,
 /**
 * for EU-GDPR
 * false: MIntegralConstans.IS_SWITCH_ON
 */
 bool isProtectGDPR = true,
 /**
 * If set to TRUE, the server will not display personalized ads based on the user's personal information.
 * When receiving the user's request, and will not synchronize the user's information to other third-party partners.
 */
 bool isProtectCCPA = false,
 });
FlutterMintegral.startSplashAd({
 String adUnitId,
 String placementId,
 String launchBackgroundId,
 });

Others

FlutterMintegral.showBannerAD({String adUnitId, String placementId});
FlutterMintegral.disposeBannerAD({String adUnitId});
FlutterMintegral.showInteractiveAD({
 String adUnitId,
 String placementId,
 });
FlutterMintegral.showInterstitialVideoAD({
 String adUnitId,
 String placementId,
 });
FlutterMintegral.showRewardVideoAD({
 String adUnitId,
 String placementId,
 String userId,
 String rewardId,
 });

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /