implemented intent receiver
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import 'package:pigeon/pigeon.dart';
|
||||
|
||||
class Intent {
|
||||
final String? fromPackageName;
|
||||
final String? action;
|
||||
final String? data;
|
||||
final List<String> categories;
|
||||
final Map<String, Object?> extra;
|
||||
|
||||
Intent({
|
||||
required this.fromPackageName,
|
||||
required this.action,
|
||||
required this.data,
|
||||
required this.categories,
|
||||
required this.extra,
|
||||
});
|
||||
}
|
||||
|
||||
@ConfigurePigeon(
|
||||
PigeonOptions(
|
||||
dartOut: 'lib/src/pigeons/intent.g.dart',
|
||||
dartOptions: DartOptions(),
|
||||
kotlinOut:
|
||||
'android/src/main/kotlin/me/movenext/simple_intent_receiver/pigeons/Intent.g.kt',
|
||||
kotlinOptions: KotlinOptions(
|
||||
package: 'me.movenext.simple_intent_receiver.pigeons',
|
||||
),
|
||||
dartPackageName: 'simple_intent_receiver',
|
||||
),
|
||||
)
|
||||
@FlutterApi()
|
||||
abstract class IntentEvents {
|
||||
void onIntentReceived(int timestamp, Intent intent);
|
||||
}
|
||||
Reference in New Issue
Block a user