设置智能提醒

设置智能提醒先发起配对,再开启对应通知的开关

功能表

__IDO_FUNCTABLE__.funcTable4Model.ancs

智能提醒模型说明

  • IDOSetNoticeInfoBuletoothModel
参数 说明 备注
isPairing 是否配对 bool
callDelay 来电延迟 目前设置必须大于等于3秒才有效
isOnChild 是否开启子开关 只对智能提醒有效,对来电提醒无效
isOnCall 来电提醒 bool
isOnSms 短信提醒 bool
isOnEmail 邮件提醒 bool
isOnWeChat 微信提醒 bool
isOnQq qq提醒 bool
isOnWeibo 微博提醒 bool
isOnFaceBook FaceBook提醒 bool
isOnTwitter Twitter提醒 bool
isOnWhatsapp Whatsapp提醒 bool
isOnMessenger Messenger提醒 bool
isOnInstagram Instagram提醒 bool
isOnLinkedIn LinkedIn提醒 bool
isOnCalendar Calendar提醒 bool
isOnSkype Skype提醒 bool
isOnAlarm Alarm提醒 bool
isOnPokeman Pokeman提醒 bool
isOnVkontakte Vkontakte提醒 bool
isOnLine Line提醒 bool
isOnViber Viber提醒 bool
isOnKakaoTalk KakaoTalk提醒 bool
isOnGmail Gmail提醒 bool
isOnOutlook Outlook提醒 bool
isOnSnapchat Snapchat提醒 bool
isOnTelegram Telegram提醒 bool
isOnChatwork Chatwork提醒 bool
isOnSlack Slack提醒 bool
isOnYahooMail Yahoo Mail提醒 bool
isOnTumblr Tumblr提醒 bool
isOnYoutube Youtube提醒 bool
isOnYahooPinterest Yahoo Pinterest提醒 bool
isOnKeep Keep提醒 bool
isOnTikTok TikTok提醒 bool
isOnRedbus Redbus 提醒 bool
isOnDailyhunt isOnDailyhunt 提醒 bool
isOnHotstar Hotstar 提醒 bool
isOnInshorts Inshorts 提醒 bool
isOnPaytm Paytm 提醒 bool
isOnAmazon Amazon 提醒 bool
isOnFlipkart Flipkart 提醒 bool
isOnPrime Prime 提醒 bool
isOnNetflix Netflix 提醒 bool
isOnGpay Gpay 提醒 bool
isOnPhonpe Phonpe 提醒 bool
isOnSwiggy Swiggy 提醒 bool
isOnZomato Zomato 提醒 bool
isOnMakeMyTrip MakeMyTrip 提醒 bool
isOnJioTv JioTv 提醒 bool
isOnMicrosoft Microsoft 提醒 bool
isOnWhatsAppBusiness WhatsApp Business 提醒 bool
isOnNioseFit NioseFit 提醒 bool
isOnDidNotCall Did no call 提醒 bool
isOnMattersRemind 事项 提醒 bool
isOnUber Uber 提醒 bool
isOnOla Ola 提醒 bool
isOnYtMusic Yt music 提醒 bool
isOnGoogleMeet Google meet 提醒 bool
isOnMormaiiSmartwatch Mormaii smartwatch 提醒 bool
isOnTechnosConnect Technos connect 提醒 bool
isOnEnioei Enioei 提醒 bool
isOnAliexpress Aliexpress 提醒 bool
isOnShopee Shopee 提醒 bool
isOnTeams Teams 提醒 bool
isOn99Taxi 99 taxi 提醒 bool
isOnUberEats Uber eats 提醒 bool
isOnLfood l food 提醒 bool
isOnRappi rappi 提醒 bool
isOnMercadoLivre Mercado Livre 提醒 bool
isOnMagalu Magalu 提醒 bool
isOnAmericanas Americanas 提醒 bool
isOnYahoo Yahoo 提醒 bool

命令代码

  • 设置配对和通知开关 如果设备没有配对会发起配对,等配对成功后再执行设置子开关状态,需要配对耗时比较长请监听回调。

    Objc:

IDOSetNoticeInfoBuletoothModel * model = [IDOSetNoticeInfoBuletoothModel currentModel];
[IDOFoundationCommand setSwitchNoticeCommand:model
             callback:^(BOOL isNeedDisconnect, int stateCode) {
    //配对过程是否需要断线,配对过程状态
} complete:^(int errorCode) {
    if (errorCode == 0) {
       //设置成功
    }else if (errorCode == 6) {
      //设备不支持
    }else {
      //设置失败
    }
}];

Swift:

let model = IDOSetNoticeInfoBuletoothModel.current();
IDOFoundationCommand.setSwitchNotice(model, callback: { (isNeedDisconnect, stateCode) in
    //配对过程是否需要断线,配对过程状态
}) { (errorCode) in
    if errorCode == 0 {
       //设置成功
    }else if errorCode == 6 {
      //设备不支持
    }else {
      //设置失败
    }
};
Copyright © 2015-2020 IDO. All rights reserved. all right reserved,powered by Gitbook修订时间: 2023-12-18 10:04:13

results matching ""

    No results matching ""