This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (requestCode == 64206){ | |
callBackManager.OnActivityResult(requestCode, (int)resultCode, data); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class FacebookCallback : Java.Lang.Object, IFacebookCallback { | |
LoginActivity loginActivity; | |
public FacebookCallback(LoginActivity loginActivity) { | |
this.loginActivity = loginActivity; | |
} | |
public void OnCancel() { | |
Log.Debug("IFacebookCallback", "Cancelled."); | |
} | |
public void OnError(FacebookException error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HmsInstanceId inst = HmsInstanceId.getInstance(this); | |
Task<AAIDResult> idResult = inst.getAAID(); | |
idResult.addOnSuccessListener(new OnSuccessListener<AAIDResult>() { | |
@Override | |
public void onSuccess(AAIDResult aaidResult) { | |
String aaid = aaidResult.getId(); | |
textView.setText(aaid); | |
Log.d(TAG, "getAAID success:" + aaid ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void _showDialog(BuildContext context, String content) { | |
showDialog( | |
context: context, | |
builder: (BuildContext context) { | |
return AlertDialog( | |
key: Key("dialog"), | |
title: Text("Result"), | |
content: Text(content), | |
actions: <Widget>[ | |
FlatButton( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
streamSubscriptionDisplay = agconnectAppmessaging.customEvent.listen((event) { | |
showDialog(context ,event.toString()); | |
agconnectAppmessaging.handleCustomViewMessageEvent | |
(AppMessagingEventType.onMessageDismiss(AppMessagingDismissTypeConstants.CLICK)); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AGCAppMessagingCustomEventStreamHandler.addCustomView(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies: | |
flutter: | |
sdk: flutter | |
agconnect_appmessaging: ^1.2.0+300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<String,Object> map = config.getMergedAll(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Boolean value = config.getValueAsBoolean("key"); | |
Double value = config.getValueAsDouble("key"); | |
Long value = config.getValueAsLong("key"); | |
String value = config.getValueAsString("key"); | |
byte[] value = config.getValueAsByteArray("key"); |