本文整理汇总了Java中com.facebook.litho.annotations.OnEvent类的典型用法代码示例。如果您正苦于以下问题:Java OnEvent类的具体用法?Java OnEvent怎么用?Java OnEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OnEvent类属于com.facebook.litho.annotations包,在下文中一共展示了OnEvent类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onClick
import com.facebook.litho.annotations.OnEvent; //导入依赖的package包/类
@OnEvent(ClickEvent.class)
static void onClick(
ComponentContext c,
@FromEvent View view,
@Prop final Product product) {
}
示例2: onClick
import com.facebook.litho.annotations.OnEvent; //导入依赖的package包/类
@OnEvent(ClickEvent.class)
static void onClick(
ComponentContext c,
@FromEvent View view,
@Prop final SingleBannerSection payload) {
}
示例3: onClickFirstBanner
import com.facebook.litho.annotations.OnEvent; //导入依赖的package包/类
@OnEvent(ClickEvent.class)
static void onClickFirstBanner(
ComponentContext c,
@FromEvent View view,
@Prop final TripleBannerSection payload) {
}
示例4: onClickSecondBanner
import com.facebook.litho.annotations.OnEvent; //导入依赖的package包/类
@OnEvent(ClickEvent.class)
static void onClickSecondBanner(
ComponentContext c,
@FromEvent View view,
@Prop final TripleBannerSection payload) {
}
示例5: onClickThirdBanner
import com.facebook.litho.annotations.OnEvent; //导入依赖的package包/类
@OnEvent(ClickEvent.class)
static void onClickThirdBanner(
ComponentContext c,
@FromEvent View view,
@Prop final TripleBannerSection payload) {
}
示例6: onClick
import com.facebook.litho.annotations.OnEvent; //导入依赖的package包/类
@OnEvent(ClickEvent.class)
static void onClick(
ComponentContext c,
@FromEvent View view,
@Prop final String name) {
final Intent intent = new Intent(c, DemoActivity.class);
intent.putExtra("demoName", name);
c.startActivity(intent);
}
示例7: onClick
import com.facebook.litho.annotations.OnEvent; //导入依赖的package包/类
@OnEvent(ClickEvent.class)
static void onClick(
ComponentContext c,
@FromEvent View view) {
FavouriteButton.toggleFavourited(c);
}