getCurrentDramaIndex method
获取当前短剧集数索引
平台支持:
- ✅ Android:
IDJXWidget.getCurrentDramaIndex() - ❌ iOS: 无对应方法
🔵 Android 独有方法
Implementation
Future<int> getCurrentDramaIndex() async {
_ensureReady();
try {
final index = await PangrowthContent.getCurrentDramaIndexDramaSwipeFlow(
_swipeFlowId!,
);
debugPrint('DramaSwipeFlowController: 获取当前集数 $index - $_swipeFlowId');
return index;
} catch (e) {
debugPrint('DramaSwipeFlowController: 获取当前集数失败 - $e');
rethrow;
}
}