示例#1
0
        // private method
        private void RegisterAssetObjectsForInteraction(YumiNativeData yumiNaitveData, Rect adViewRect, Rect mediaViewRect, Rect iconViewRect, Rect ctaViewRect, Rect titleRect, Rect descRect)
        {
            //set view style
            YumiExterns.RenderingTitleText(NativeAdPtr, adOptions.titleTextOptions.textColor, adOptions.titleTextOptions.backgroundColor, adOptions.titleTextOptions.textSize);
            YumiExterns.RenderingDescText(NativeAdPtr, adOptions.descTextOptions.textColor, adOptions.descTextOptions.backgroundColor, adOptions.descTextOptions.textSize);
            YumiExterns.RenderingCallToActionText(NativeAdPtr, adOptions.callToActionTextOptions.textColor, adOptions.callToActionTextOptions.backgroundColor, adOptions.callToActionTextOptions.textSize);
            YumiExterns.RenderingIconScaleType(NativeAdPtr, (int)adOptions.iconScaleType);
            YumiExterns.RenderingCoverImageScaleType(NativeAdPtr, (int)adOptions.coverImageScaleType);

            YumiExterns.RegisterAssetViewsForInteraction(this.NativeAdPtr, yumiNaitveData.uniqueId,
                                                         (int)adViewRect.x, (int)adViewRect.y, (int)adViewRect.width, (int)adViewRect.height,
                                                         (int)mediaViewRect.x, (int)mediaViewRect.y, (int)mediaViewRect.width, (int)mediaViewRect.height,
                                                         (int)iconViewRect.x, (int)iconViewRect.y, (int)iconViewRect.width, (int)iconViewRect.height,
                                                         (int)ctaViewRect.x, (int)ctaViewRect.y, (int)ctaViewRect.width, (int)ctaViewRect.height,
                                                         (int)titleRect.x, (int)titleRect.y, (int)titleRect.width, (int)titleRect.height,
                                                         (int)descRect.x, (int)descRect.y, (int)descRect.width, (int)descRect.height);
        }