コード例 #1
0
    void LayoutToggles()
    {
        GUILayout.Space(5);
        GUILayout.Label("Options:");
        showInterstitial  = GUILayout.Toggle(showInterstitial, "Should Display Interstitial");
        showRewardedVideo = GUILayout.Toggle(showRewardedVideo, "Should Display Rewarded Video");
        if (GUILayout.Toggle(ageGate, "Should Pause for AgeGate") != ageGate)
        {
            ageGate = !ageGate; // toggle
#pragma warning disable CS0618  // Type or member is obsolete
            Chartboost.setShouldPauseClickForConfirmation(ageGate);
#pragma warning restore CS0618  // Type or member is obsolete
        }
        if (GUILayout.Toggle(autocache, "Auto cache ads") != autocache)
        {
            autocache = !autocache;             // toggle
            Chartboost.setAutoCacheAds(autocache);
        }

                #if UNITY_IPHONE
        GUILayout.Label("Status Bar Behavior:");
        int slider = Mathf.RoundToInt(GUILayout.HorizontalSlider((int)statusBar, 0, 2, GUILayout.Width(ELEMENT_WIDTH / 2)));
        if (slider != (int)statusBar)
        {
            statusBar = (CBStatusBarBehavior)slider;
            Chartboost.setStatusBarBehavior(statusBar);
            switch (statusBar)
            {
            case CBStatusBarBehavior.Ignore:
                AddLog("set to Ignore");
                break;

            case CBStatusBarBehavior.RespectButtons:
                AddLog("set to RespectButtons");
                break;

            case CBStatusBarBehavior.Respect:
                AddLog("set to Respect");
                break;
            }
        }
                #endif
    }
コード例 #2
0
 /// Sets whether to autocache after every show call
 public static void setStatusBarBehavior(CBStatusBarBehavior statusBarBehavior)
 {
     _chartBoostSetStatusBarBehavior(statusBarBehavior);
     Log("iOS : Set StatusBarBehavior to = " + statusBarBehavior);
 }
コード例 #3
0
 private static extern void _chartBoostSetStatusBarBehavior(CBStatusBarBehavior statusBarBehavior);
コード例 #4
0
 public static void setStatusBarBehavior(CBStatusBarBehavior statusBarBehavior)
 {
     Log("Unity : setStatusBarBehavior with value = " + statusBarBehavior);
 }
コード例 #5
0
	void LayoutToggles()
	{
		GUILayout.Space(5);
		GUILayout.Label("Options:");
		showInterstitial = GUILayout.Toggle(showInterstitial, "Should Display Interstitial");
		showMoreApps = GUILayout.Toggle(showMoreApps, "Should Display More Apps");
		showRewardedVideo = GUILayout.Toggle(showRewardedVideo, "Should Display Rewarded Video");
		if( GUILayout.Toggle(ageGate, "Should Pause for AgeGate") != ageGate )
		{
			ageGate = !ageGate; // toggle
			Chartboost.setShouldPauseClickForConfirmation(ageGate);
		}
		if( GUILayout.Toggle(autocache, "Auto cache ads") != autocache )
		{
			autocache = !autocache; // toggle
			Chartboost.setAutoCacheAds(autocache);
		}

		#if UNITY_IPHONE
		GUILayout.Label("Status Bar Behavior:");
		int slider = Mathf.RoundToInt(GUILayout.HorizontalSlider((int)statusBar, 0, 2, GUILayout.Width(ELEMENT_WIDTH/2)));
		if( slider != (int)statusBar )
		{
			statusBar = (CBStatusBarBehavior)slider;
			Chartboost.setStatusBarBehavior(statusBar);
			switch(statusBar)
			{
				case CBStatusBarBehavior.Ignore:
					AddLog("set to Ignore");
					break;
				case CBStatusBarBehavior.RespectButtons:
					AddLog("set to RespectButtons");
					break;
				case CBStatusBarBehavior.Respect:
					AddLog("set to Respect");
					break;
			}
		}
		#endif
	}
コード例 #6
0
ファイル: Chartboost.cs プロジェクト: vit2005/seaBattletest1
		/// <summary>
		/// Set to control how the fullscreen ad units should interact with the status bar. (CBStatusBarBehaviorIgnore by default).
		/// See the enum value comments for descriptions on the values and their behavior.  Only use this feature if your application has the status bar enabled.
		/// </summary>
		/// <param name="statusBarBehavior">The param to set if fullscreen video should respect the status bar.</param>
		public static void setStatusBarBehavior(CBStatusBarBehavior statusBarBehavior) {
			CBExternal.setStatusBarBehavior(statusBarBehavior);
		}
コード例 #7
0
 private static extern void _chartBoostSetStatusBarBehavior(CBStatusBarBehavior statusBarBehavior);
コード例 #8
0
 /// Sets whether to autocache after every show call
 public static void setStatusBarBehavior(CBStatusBarBehavior statusBarBehavior)
 {
     _chartBoostSetStatusBarBehavior(statusBarBehavior);
     Log("iOS : Set StatusBarBehavior to = " + statusBarBehavior);
 }
コード例 #9
0
 public static void setStatusBarBehavior(CBStatusBarBehavior statusBarBehavior)
 {
     Log("Unity : setStatusBarBehavior with value = " + statusBarBehavior);
 }