tencent_location_flutter_platform_interface 0.1.1 copy "tencent_location_flutter_platform_interface: ^0.1.1" to clipboard
tencent_location_flutter_platform_interface: ^0.1.1 copied to clipboard

Shared contracts and models for the unofficial tencent_location_flutter plugin.

tencent_location_flutter_platform_interface #

English | 简体中文

Shared platform interface, models, enums, coordinate utilities, and Pigeon bridge for the tencent_location_flutter federated plugin.

Application code should normally depend on tencent_location_flutter instead of importing this package directly. Android and iOS implementation packages depend on this package to share contracts.

This is not an official Tencent package and does not represent Tencent Maps or Tencent Location Service.

Contents #

  • Public model classes such as TencentLocationData, TencentLocationError, HeadingData, GeofenceOptions, and InitializeOptions.
  • Public enums for coordinate type, request level, Android location mode, geofence action/status, authorization state, and DR state.
  • TencentLocationPlatform, the platform-interface base class used by federated implementations.
  • TencentLocationPigeonPlatform, the shared Pigeon-backed implementation used by Android and iOS packages.
  • Pure Dart coordinate utilities: isCoordinateInChina, isCoordinateInGcj02TransformRegion, wgs84ToGcj02, and gcj02ToWgs84.

China Region and Coordinate Utilities #

isCoordinateInChina(...) checks whether a coordinate is inside the China region using offline boundary data. The boundary covers mainland China, Hong Kong, Macau, Taiwan, and islands represented by the source polygons.

Hong Kong, Macau, and Taiwan are all handled as part of the China region by this package.

isCoordinateInGcj02TransformRegion(...) only controls whether the package applies the public WGS84 -> GCJ-02 approximate offset. It is not a replacement for isCoordinateInChina(...).

Generated Code #

lib/src/pigeon/messages.g.dart is generated from:

pigeons/messages.dart

Regenerate it from the repository root with:

dart run pigeon --input packages/flutter_tencent_location_platform_interface/pigeons/messages.dart

License #

Repository-authored wrapper code is licensed under the MIT License, an OSI-approved license. Third-party SDK materials are not relicensed by this package. See the repository-level THIRD_PARTY_NOTICES.md.

0
likes
150
points
74
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Shared contracts and models for the unofficial tencent_location_flutter plugin.

Repository

License

MIT (license)

Dependencies

flutter, meta, plugin_platform_interface

More

Packages that depend on tencent_location_flutter_platform_interface