搜尋套件、儲存庫與 APP 分類

套件詳情v2.0.0

snapkit

一個用於在 iOS 與 Android 上整合 Snapchat 的 SnapKit 的 Flutter 插件

AndroidiOS
近 30 天下載
33
喜歡數
32
Pub 分數
130

安裝套件

flutter pub add snapkit

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

SnapKit 是一個 Flutter 插件,可在 iOS 和 Android 平台上實現與 Snapchat 的 SnapKit SDK 集成。它讓開發者能夠在其 Flutter 應用中整合 Snapchat 特有的功能,例如分享內容、存取使用者資料以及運用 Snapchat 的 AR 功能。該插件在 Flutter 與原生 Snapchat SDK 之間提供橋樑,確保跨移動平台的無縫功能。支援 Android 和 iOS,SnapKit 簡化了向應用新增 Snapchat 互動功能的過程,而無需深入了解原生開發知識。

適用情境

  • 分享內容到 Snapchat
  • 整合Snapchat AR鏡片
  • 訪問Snapchat用戶數據
  • 建構社群媒體整合
  • 啟用應用內 Snaps
  • 建立 Snapchat 驅動的功能

主要特色

  • 原生 Snapchat SDK 集成
  • 跨平台支援(iOS 與 Android)
  • 簡單的 Flutter API
  • 支援 SnapKit 的核心功能
  • 透過 pub.dev 輕鬆設定
  • 來自社群維護者的定期更新

適合對象

  • 社群媒體應用
  • AR啟用的應用程式
  • 內容共享平台
  • 面向Snapchat用戶的應用
  • 使用 Flutter 開發移動應用的開發者

使用建議

  • 需要Snapchat開發者帳號
  • 僅限Snapchat特定功能
  • 依賴原生SDK版本
  • 可能需要額外權限
  • 不適用於非Snapchat使用案例

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Snapkit

Pub Package Code Analysis Android Builds iOS Builds

A plugin that allows developers like you to integrate with Snapchat (using SnapKit) into your Flutter applications!

Getting Started

Follow the Wiki for steps on how to get setup in an existing project or just copy the example project into a directory of your choosing and rename it.

Usage

Create new Instance
Snapkit snapkit = new Snapkit();
AuthState Stream
snapkit.onAuthStateChanged.listen((SnapchatUser? user) {
    // Do something with the returned SnapchatUser or null here
});
AuthState Class
class MyAppState extends State<MyApp> implements SnapchatAuthStateListener {

  snapkit.addAuthStateListener(this);

  @override
  void onLogin(SnapchatUser user) {
    // Do something with the returned SnapchatUser here
  }

  @override
  void onLogout() {
    // Do something on logout
  }

}
Login
await snapkit.login();

// or

snapkit.login().then(user => {});
Logout
await snapkit.logout();

// or

snapkit.logout().then(() => {});
Verify a Phone Number

Returns a bool if Snapchat has verified the phone number, throws an error if there was a problem. Always returns false on Android

snapkit.verifyPhoneNumber('US', '1231234567')
  .then(isVerified {})
  .catchError((error, StackTrace stacktrace) {})

Share to Snapchat

Share to LIVE
snapkit.share(SnapchatMediaType.NONE,
  sticker: SnapchatSticker?,
  caption: String?,
  attachmentUrl: String?
);
Share with Background Photo
snapkit.share(SnapchatMediaType.PHOTO,
  image: ImageProvider,
  sticker: SnapchatSticker?,
  caption: String?,
  attachmentUrl: String?
);
Share with Background Video

Currently unavailable on Android

snapkit.share(SnapchatMediaType.VIDEO,
  videoUrl: String,
  sticker: SnapchatSticker?,
  caption: String?,
  attachmentUrl: String?
);
SnapchatSticker
new SnapchatSticker(
  image: ImageProvider
);

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。