本文整理汇总了Java中com.mobisage.android.MobiSageAdProductPlacement类的典型用法代码示例。如果您正苦于以下问题:Java MobiSageAdProductPlacement类的具体用法?Java MobiSageAdProductPlacement怎么用?Java MobiSageAdProductPlacement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MobiSageAdProductPlacement类属于com.mobisage.android包,在下文中一共展示了MobiSageAdProductPlacement类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onMobiSageProductPlacementShow
import com.mobisage.android.MobiSageAdProductPlacement; //导入依赖的package包/类
@Override
public void onMobiSageProductPlacementShow(
MobiSageAdProductPlacement arg0) {
mActivity.runOnUiThread(new Runnable() {
@Override
public void run() {
if (mIsStartToShow && mediaPlayerDelegate != null
&& mAdType == AdVender.ADSAGE) {
setVisible(true);
setVisibility(View.VISIBLE);
mActivity.isImageADShowing = true;
isGetFeedBack = true;
Track.onImageAdStart();
} else {
disposeAdLoss(URLContainer.AD_LOSS_STEP3);
}
}
});
}
示例2: startMobisageAd
import com.mobisage.android.MobiSageAdProductPlacement; //导入依赖的package包/类
private void startMobisageAd() {
setAdType(AdVender.ADSAGE);
removeAllAd();
if (!PluginImageAD.isMobiSageSDKInit) {
MobiSageManager.getInstance().setPublisherID(mActivity,
AdVender.MobiSage_ID);
PluginImageAD.isMobiSageSDKInit = true;
}
DisplayMetrics displayMetrics = new DisplayMetrics();
mActivity.getWindowManager().getDefaultDisplay()
.getMetrics(displayMetrics);
mMobisageAd = new MobiSageAdProductPlacement(mActivity, true);
if (mMobisageListener == null) {
mMobisageListener = new AdMobisageListener();
}
mMobisageAd.setMobiSageAdProductPlacementListener(mMobisageListener);
if (mParams == null) {
mParams = new LayoutParams((int) displayMetrics.density * 300,
(int) displayMetrics.density * 250);
}
mMobisageContainer.addView(mMobisageAd, mParams);
AdvInfo advInfo = getAdvInfo();
DisposableStatsUtils.disposePausedSUS(advInfo);
}
示例3: onMobiSageProductPlacementShow
import com.mobisage.android.MobiSageAdProductPlacement; //导入依赖的package包/类
@Override
public void onMobiSageProductPlacementShow(
MobiSageAdProductPlacement arg0) {
mActivity.runOnUiThread(new Runnable() {
@Override
public void run() {
if (mediaPlayerDelegate != null
&& mediaPlayerDelegate.isFullScreen
&& mAdType == AdVender.ADSAGE && !pauseADcanceled) {
setVisible(true);
setVisibility(View.VISIBLE);
} else {
disposeAdLoss(URLContainer.AD_LOSS_STEP3);
}
}
});
}
示例4: onMobiSageProductPlacementClose
import com.mobisage.android.MobiSageAdProductPlacement; //导入依赖的package包/类
@Override
public void onMobiSageProductPlacementClose(
MobiSageAdProductPlacement arg0) {
if (mActivity.isImageADShowing) {
mActivity.isImageADShowing = false;
mIsStartToShow = false;
isGetFeedBack = true;
Track.onImageAdEnd();
if (mediaPlayerDelegate != null) {
mediaPlayerDelegate.startPlayAfterImageAD();
}
}
}
示例5: onMobiSageProductPlacementError
import com.mobisage.android.MobiSageAdProductPlacement; //导入依赖的package包/类
@Override
public void onMobiSageProductPlacementError(
MobiSageAdProductPlacement arg0) {
mActivity.isImageADShowing = false;
mIsStartToShow = false;
isGetFeedBack = true;
disposeAdLoss(URLContainer.AD_LOSS_STEP4);
if (mediaPlayerDelegate != null) {
mediaPlayerDelegate.startPlayAfterImageAD();
}
}
示例6: onMobiSageProductPlacementClick
import com.mobisage.android.MobiSageAdProductPlacement; //导入依赖的package包/类
@Override
public void onMobiSageProductPlacementClick(
MobiSageAdProductPlacement arg0) {
// TODO Auto-generated method stub
}
示例7: onMobiSageProductPlacementHide
import com.mobisage.android.MobiSageAdProductPlacement; //导入依赖的package包/类
@Override
public void onMobiSageProductPlacementHide(
MobiSageAdProductPlacement arg0) {
// TODO Auto-generated method stub
}
示例8: onMobiSageProductPlacementHideWindow
import com.mobisage.android.MobiSageAdProductPlacement; //导入依赖的package包/类
@Override
public void onMobiSageProductPlacementHideWindow(
MobiSageAdProductPlacement arg0) {
// TODO Auto-generated method stub
}
示例9: onMobiSageProductPlacementPopupWindow
import com.mobisage.android.MobiSageAdProductPlacement; //导入依赖的package包/类
@Override
public void onMobiSageProductPlacementPopupWindow(
MobiSageAdProductPlacement arg0) {
// TODO Auto-generated method stub
}
示例10: onMobiSageProductPlacementClose
import com.mobisage.android.MobiSageAdProductPlacement; //导入依赖的package包/类
@Override
public void onMobiSageProductPlacementClose(
MobiSageAdProductPlacement arg0) {
// TODO Auto-generated method stub
}
示例11: onMobiSageProductPlacementError
import com.mobisage.android.MobiSageAdProductPlacement; //导入依赖的package包/类
@Override
public void onMobiSageProductPlacementError(
MobiSageAdProductPlacement arg0) {
disposeAdLoss(URLContainer.AD_LOSS_STEP4);
}