/*! * @brief You can customize a bit the colors used for the user interface. It'll mainly affect the header and the footer of the panel that you present. * @since 2.0 * * @note You must specify both the background and text colors. * * @param backgroundColor The color used for the background. * @param textColor The color used for the text (over the specific background color). */ public static void SetBackgroundAndTextColor(AF_RGBA backgroundColor, AF_RGBA textColor) { if (Application.platform == RuntimePlatform.IPhonePlayer) { afsdk_setBackgroundAndTextColor(backgroundColor, textColor); } }
// Use this for initialization void Start() { AF_RGBA backgroundColor, textColor; // numberOfNotifications = 0; // af ad sdk - enable debug mode to see an ad each time // we suggest you to only keep it for debug builds! // otherwise, don't forget to comment/remove it before any store submission!!! #warning enable it for testing, disable it for store submission!! AppsfireAdSDK.SetDebugModeEnabled(true); // af sdk - connect with your sdk token / secret key #error please enter your sdk token and secret key here! AppsfireSDK.ConnectWithSDKTokenAndSecretKey("", "", AFSDKFeature.AFSDKFeatureEngage | AFSDKFeature.AFSDKFeatureMonetization); // af engage sdk - handle badge count locally and remotely AppsfireEngageSDK.HandleBadgeCountLocallyAndRemotely(true); #if UNITY_IPHONE UnityEngine.iOS.NotificationServices.RegisterForNotifications(UnityEngine.iOS.NotificationType.Alert | UnityEngine.iOS.NotificationType.Badge | UnityEngine.iOS.NotificationType.Sound); #endif // af engage sdk - customize background and text colors // these values are default colors, you can customize with the colors of your app backgroundColor = new AF_RGBA(66.0 / 255.0, 67.0 / 255.0, 69.0 / 255.0, 1.0); textColor = new AF_RGBA(1.0, 1.0, 1.0, 1.0); AppsfireEngageSDK.SetBackgroundAndTextColor(backgroundColor, textColor); }
private static extern void afsdk_setBackgroundAndTextColor(AF_RGBA backgroundColor, AF_RGBA textColor);