public void setPublicationValues(@Nullable PublicationSettings publicationSettings,
                                     @NonNull List<Integer> boundAppKeyIndexes) {
        if (publicationSettings != null) {
            publishAddress = publicationSettings.getPublishAddress();
            labelUUID = publicationSettings.getLabelUUID();

            friendshipCredentialsFlag = publicationSettings.getCredentialFlag();
            publishTtl = publicationSettings.getPublishTtl();

            publicationSteps = publicationSettings.getPublicationSteps();
            publicationResolution = publicationSettings.getPublicationResolution();

            retransmitCount = publicationSettings.getPublishRetransmitCount();
            retransmitIntervalSteps = publicationSettings.getPublishRetransmitIntervalSteps();

            //Default app key index to the 0th key in the list of bound app keys
            if (!boundAppKeyIndexes.isEmpty()) {
                appKeyIndex = publicationSettings.getAppKeyIndex();
            }
        }
    }
Initialises the publication settings properties int he view model based on the publication settings.

@param publicationSettings Publication settings.
@param boundAppKeyIndexes  Bound application key indexes.
app/src/main/java/no/nordicsemi/android/nrfmesh/viewmodels/PublicationViewModel.java