function [isLicensedOnline, entitlementID] = getOnlineLicenseInfo()
%

%   Copyright 2012-2019 The MathWorks, Inc.

licInfo = matlab.internal.licensing.getLicMode();

isLicensedOnline = strcmp(licInfo.licmode, 'online');
entitlementID = licInfo.entitlement_id;