패키지, 저장소 및 앱 카테고리 검색

GitHub 저장소TimmyRB/snapkit

snapkit

SnapKit은 Flutter 프로젝트에 Snapchat 자체 SDK를 통합할 수 있도록 해주는 Flutter 플러그인입니다!

snapkit 프로젝트 이미지
스타
31
포크
17
최근 푸시(UTC)
2024. 2. 13.
프로젝트 상태
활성

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

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
);
Jacob Brasil GitHub avatar
GitHub 작성자

Jacob Brasil ↗

Software Developer

언어DartJavaSwiftRubyObjective-C

분류

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 4 개

  • flutter{"sdk":"flutter"}
  • http^0.13.3
  • path_provider^2.0.2
  • flutter_test개발 의존성{"sdk":"flutter"}

프로젝트에 맞는 저장소를 선택하려면?

사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.

  1. 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
  2. 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
  3. 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.

출처 및 관리

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗