mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 13:38:13 -08:00
chore: Implement translation callbacks to flutter
This commit is contained in:
parent
e902e2034a
commit
29917bb59f
16 changed files with 681 additions and 43 deletions
30
pigeons/translations_pigeon.dart
Normal file
30
pigeons/translations_pigeon.dart
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import 'package:pigeon/pigeon.dart';
|
||||
|
||||
@ConfigurePigeon(
|
||||
PigeonOptions(
|
||||
dartOut: 'lib/src/translations_pigeon.g.dart',
|
||||
dartOptions: DartOptions(),
|
||||
kotlinOut: 'android/app/src/main/kotlin/nl/jknaapen/fladder/api/TranslationsPigeon.g.kt',
|
||||
kotlinOptions: KotlinOptions(
|
||||
includeErrorClass: false,
|
||||
),
|
||||
dartPackageName: 'nl_jknaapen_fladder.settings',
|
||||
),
|
||||
)
|
||||
@FlutterApi()
|
||||
abstract class TranslationsPigeon {
|
||||
String next();
|
||||
String nextVideo();
|
||||
String close();
|
||||
|
||||
String skip(String name);
|
||||
|
||||
String subtitles();
|
||||
|
||||
String off();
|
||||
String chapters(int count);
|
||||
|
||||
String nextUpInSeconds(int seconds);
|
||||
|
||||
String endsAt(String time);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue