klinker41 / android-smsmms

Library for easily sending SMS and MMS for Android devices
678 stars 249 forks source link

Allow end-users to override yielded number logic #156

Open hhff opened 5 years ago

hhff commented 5 years ago

In order to override how the lib finds the device's phone number, this PR allows end users to do this:

com.klinker.android.send_message.Utils.setOwnNumberOverride(new com.klinker.android.send_message.OwnNumber() {
   @Override
   public String onYield(Context context) {
       return myCustomResolveNumberLogic();
   }
});
kangnaclub9 commented 4 years ago

coply