setCurrentPage method
设置当前页面位置
position 页面索引值
平台支持:
- ✅ Android:
IDJXWidget.setCurrentPage(position) - ❌ iOS: DramaHome不支持iOS
🔵 Android 独有方法
Implementation
Future<bool> setCurrentPage(int position) async {
_ensureReady();
try {
final result = await PangrowthContent.setCurrentPageDramaHome(
_homeId!,
position,
);
debugPrint('DramaHomeController: 设置当前页到 $position - $_homeId');
return result;
} catch (e) {
debugPrint('DramaHomeController: 设置当前页失败 - $e');
rethrow;
}
}