flutter_core_spotlight 1.0.4 copy "flutter_core_spotlight: ^1.0.4" to clipboard
flutter_core_spotlight: ^1.0.4 copied to clipboard

PlatformiOS

Flutter plugin used for indexing items in Spotlight search on iOS.

flutter_core_spotlight #

Flutter plugin used for indexing items in Spotlight search on iOS.

Example Screenshot

Note: This plugin only works on iOS.

Getting Started #

Add flutter_core_spotlight as a dependency in your pubspec.yaml file.

Check out the example directory for a sample app.

Usage #

Import the library via

import 'package:flutter_core_spotlight/flutter_core_spotlight.dart';

Example:

// Indexing a searchable item
FlutterCoreSpotlight.instance.indexSearchableItems([
    FlutterSpotlightItem(
        uniqueIdentifier: 'ExampleUniqueIdentifier',
        domainIdentifier: 'com.example.flutter_spotlight_plugin',
        attributeTitle: 'Item Title',
        attributeDescription: 'This is an item description',
    )
]);

// Deleting a searchable item
FlutterCoreSpotlight.instance.deleteSearchableItems([
    'ExampleUniqueIdentifier',
]);

// Callback on searchable item selected
FlutterCoreSpotlight.instance.configure(
    onSearchableItemSelected: (userActivity) {
        print(userActivity?.uniqueIdentifier);
        print(userActivity?.userInfo);
    },
);
13
likes
130
pub points
74%
popularity

Publisher

verified publisherciannapps.com

Flutter plugin used for indexing items in Spotlight search on iOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_core_spotlight