crossProfileAppFunctions = $crossProfileAppFunctions; } /** * @return self::CROSS_PROFILE_APP_FUNCTIONS_* */ public function getCrossProfileAppFunctions() { return $this->crossProfileAppFunctions; } /** * Whether text copied from one profile (personal or work) can be pasted in * the other profile. * * Accepted values: CROSS_PROFILE_COPY_PASTE_UNSPECIFIED, * COPY_FROM_WORK_TO_PERSONAL_DISALLOWED, CROSS_PROFILE_COPY_PASTE_ALLOWED * * @param self::CROSS_PROFILE_COPY_PASTE_* $crossProfileCopyPaste */ public function setCrossProfileCopyPaste($crossProfileCopyPaste) { $this->crossProfileCopyPaste = $crossProfileCopyPaste; } /** * @return self::CROSS_PROFILE_COPY_PASTE_* */ public function getCrossProfileCopyPaste() { return $this->crossProfileCopyPaste; } /** * Whether data from one profile (personal or work) can be shared with apps in * the other profile. Specifically controls simple data sharing via intents. * Management of other cross-profile communication channels, such as contact * search, copy/paste, or connected work & personal apps, are configured * separately. * * Accepted values: CROSS_PROFILE_DATA_SHARING_UNSPECIFIED, * CROSS_PROFILE_DATA_SHARING_DISALLOWED, * DATA_SHARING_FROM_WORK_TO_PERSONAL_DISALLOWED, * CROSS_PROFILE_DATA_SHARING_ALLOWED * * @param self::CROSS_PROFILE_DATA_SHARING_* $crossProfileDataSharing */ public function setCrossProfileDataSharing($crossProfileDataSharing) { $this->crossProfileDataSharing = $crossProfileDataSharing; } /** * @return self::CROSS_PROFILE_DATA_SHARING_* */ public function getCrossProfileDataSharing() { return $this->crossProfileDataSharing; } /** * List of apps which are excluded from the ShowWorkContactsInPersonalProfile * setting. For this to be set, ShowWorkContactsInPersonalProfile must be set * to one of the following values: * SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these * exemptions act as a blocklist. * SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED. In this case, these * exemptions act as an allowlist. * SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM. In this * case, these exemptions act as an allowlist, in addition to the already * allowlisted system apps.Supported on Android 14 and above. A * NonComplianceDetail with API_LEVEL is reported if the Android version is * less than 14. * * @param PackageNameList $exemptionsToShowWorkContactsInPersonalProfile */ public function setExemptionsToShowWorkContactsInPersonalProfile(PackageNameList $exemptionsToShowWorkContactsInPersonalProfile) { $this->exemptionsToShowWorkContactsInPersonalProfile = $exemptionsToShowWorkContactsInPersonalProfile; } /** * @return PackageNameList */ public function getExemptionsToShowWorkContactsInPersonalProfile() { return $this->exemptionsToShowWorkContactsInPersonalProfile; } /** * Whether personal apps can access contacts stored in the work profile.See * also exemptions_to_show_work_contacts_in_personal_profile. * * Accepted values: SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_UNSPECIFIED, * SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED, * SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED, * SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM * * @param self::SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_* $showWorkContactsInPersonalProfile */ public function setShowWorkContactsInPersonalProfile($showWorkContactsInPersonalProfile) { $this->showWorkContactsInPersonalProfile = $showWorkContactsInPersonalProfile; } /** * @return self::SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_* */ public function getShowWorkContactsInPersonalProfile() { return $this->showWorkContactsInPersonalProfile; } /** * Specifies the default behaviour for work profile widgets. If the policy * does not specify work_profile_widgets for a specific application, it will * behave according to the value specified here. * * Accepted values: WORK_PROFILE_WIDGETS_DEFAULT_UNSPECIFIED, * WORK_PROFILE_WIDGETS_DEFAULT_ALLOWED, * WORK_PROFILE_WIDGETS_DEFAULT_DISALLOWED * * @param self::WORK_PROFILE_WIDGETS_DEFAULT_* $workProfileWidgetsDefault */ public function setWorkProfileWidgetsDefault($workProfileWidgetsDefault) { $this->workProfileWidgetsDefault = $workProfileWidgetsDefault; } /** * @return self::WORK_PROFILE_WIDGETS_DEFAULT_* */ public function getWorkProfileWidgetsDefault() { return $this->workProfileWidgetsDefault; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(CrossProfilePolicies::class, 'Google_Service_AndroidManagement_CrossProfilePolicies');