getAttachement()

Where is the function "getAttachement() defined. Or what do I need to import for the function.

This is related to the following code:

.onContextChange(new Function1<Set<? extends ProximityZoneContext>, Unit>() {
    @Override
    public Unit invoke(Set<? extends ProximityZoneContext> contexts) {
        List<String> deskOwners = new ArrayList<>();
        for (ProximityZoneContext context : contexts) {
            deskOwners.add(context.**getAttachment()**.get("desk-owner"));
        }
        Log.d("app", "In range of desks: " + deskOwners);
        return null;

That’s a typo, should be getAttachments. I’ve updated/fixed this in the documentation. Thanks for the heads up!

1 Like