2. SDK Integration
Calling functions in activity lifecycle
@Override
protected void onResume() {
super.onResume();
FID.INSTANCE.notifyActive(this);
FPay.INSTANCE.notifyActive(this);
}
@Override
protected void onPause() {
super.onPause();
FID.INSTANCE.notifyInactive(this);
FPay.INSTANCE.notifyInactive(this);
}override fun onResume() {
super.onResume()
FID.notifyActive(this)
FPay.notifyActive(this)
}
override fun onPause() {
super.onPause()
FID.notifyInactive(this)
FPay.notifyInactive(this)
}Register callback
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
FID.INSTANCE.registerSDK(this);
FPay.INSTANCE.register(this);
}
@Override
protected void onDestroy() {
super.onDestroy();
FID.INSTANCE.unregisterSDK(this);
FPay.INSTANCE.unregister(this);
}override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
FID.registerSDK(this)
FPay.register(this)
}
override fun onDestroy() {
super.onDestroy()
FID.unregisterSDK(this)
FPay.unregister(this)
}Loading dynamic config
Last updated