0 purchases
cv native client
CV Native Client #
Flutter plugin for CV Native Client.
This plugin allows you to access Native API's of platform.
Usage #
To use this plugin, add cv_native_client as a dependency in your pubspec.yaml file.
Installation #
Add this to your package's pubspec.yaml file:
dependencies:
cv_native_client: ^1.0.1
copied to clipboard
Example #
import 'package:cv_native_client/cv_native_client.dart';
// Get platform version
String platformVersion = await CvNativeClient.getPlatformVersion();
// Get clipboard data mime types
final List<CvClipboardMimeType> mimeTypes = await CvNativeClient.getClipboardDataMimeTypes();
log('Clipboard mime types: $mimeTypes');
// Get clipboard Data
final CvClipboardData? clipboardData = await CvNativeClient.getClipboardData();
log('Clipboard text: ${clipboardData?.plainText}');
log('Clipboard html: ${clipboardData?.htmlText}');
// Set clipboard Data
await CvNativeClient.setClipboardData(CvClipboardData(plainText: 'Hello World!', htmlText: '<b>Hello World!</b>'));
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.