FLUTTER ECOSYSTEM

Ayush783/readsms_plugin

Android에서 SMS를 읽기 위한 Flutter 플러그인.

readsms_plugin 프로젝트 이미지
Stars
8
Forks
21
최근 푸시(UTC)
2024. 9. 8.
프로젝트 상태
활성
Aayush sharma GitHub avatar
GITHUB User

Aayush sharma ↗

SDE @ India Today Group | Flutter Developer

India Today GroupDelhi NCR공식 웹사이트 ↗
언어DartKotlinRubyObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^2.0.0

원본 README

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

README 펼치기 / 접기

readsms

This is a plugin made for flutter to read incoming sms on the device as a broadcast stream.

Following steps describe how to use the plugin ReadSms :-

  • Ask the user for Sms permission. You can do this using Permission handler package.
  • Create an instance of ReadSms.
  final plugin = ReadSms();
  • Call the read method on the plugin object;
  plugin.read();
  • Access the stream of SMS exposed by the plugin object and get the incoming SMS.
  plugin.smsStream.listen((sms){
    print(sms.body);
    print(sms.sender);
    print(sms.timeReceived);
  });

That's all you need to do.