sim_sms_call_info 0.0.2 copy "sim_sms_call_info: ^0.0.2" to clipboard
sim_sms_call_info: ^0.0.2 copied to clipboard

PlatformAndroid

Read android call logs, sms logs and sim info.

example/lib/main.dart

import 'package:call_log/call_log.dart';
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:sim_sms_call_info/MonuSimInfo.dart';
import 'package:sim_sms_call_info/methodChannel/MonuSimInfo/Model/SimInfo.dart';
import 'package:sim_sms_call_info/methodChannel/MonuSimInfo/Model/SmsInfoModel.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();

    getSimInfo();
    getSmsLogs();
    getCallLogs();
  }

  @override
  Widget build(BuildContext context) {
    // MonuSimInfo.getSimInfo();
    // MonuSimInfo.getSMSInfo();

    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $_platformVersion\n'),
        ),
      ),
    );
  }

  Future<SimInfo> getSimInfo() async {
    return MonuSimInfo.getSimInfo();
  }

  Future<SmsInfoModel> getSmsLogs() async {
    return MonuSimInfo.getSMSInfo();

  }

  Future<Iterable<CallLogEntry>> getCallLogs()  async{
    return  await MonuSimInfo.getCallLogs();
  }
}
2
likes
100
pub points
35%
popularity

Publisher

unverified uploader

Read android call logs, sms logs and sim info.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

call_log, flutter

More

Packages that depend on sim_sms_call_info