-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read ECID from IdentityDirect on Boot when registered #40
Changes from 4 commits
00bb0d4
9d3e88f
116361c
d2ad1b4
85bd3f1
35a3aca
368b9f6
31ef3a4
a49bca3
dd6c2b3
d4940ad
3bb01ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
Copyright 2021 Adobe. All rights reserved. | ||
This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. You may obtain a copy | ||
of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under | ||
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
OF ANY KIND, either express or implied. See the License for the specific language | ||
governing permissions and limitations under the License. | ||
*/ | ||
|
||
package com.adobe.marketing.mobile.edge.identity; | ||
|
||
import com.adobe.marketing.mobile.Event; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* Callback for fetching Shared States from the outside of the extension class. | ||
*/ | ||
interface SharedStateCallback { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I love this way of exposing the sharedState API from extension class. How about renaming this to
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice suggestion, code looks nice, but I feel that this way you loose the context that it is a callback resolved in the parent extension and it can be easily confused with ExtensionsApi getApi. |
||
|
||
/** | ||
* Fetches the Shared State for the provided {@code event} from the specified {@code stateOwner}. | ||
* | ||
* @param stateOwner Shared state owner name | ||
* @param event current event for which to fetch the shared state; if null is passed, the latest shared state will be returned | ||
* @return current shared state if found, null if shared state is pending or an error occurred | ||
*/ | ||
Map<String, Object> getSharedState(final String stateOwner, final Event event); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some cleanup on these constants