@@ -161,7 +161,7 @@ class GliaWidgetsConfig private constructor(builder: Builder) {
161161 * @param region Region in which the site is created.
162162 * One of [Regions].
163163 * @return Builder instance
164- * @deprecated Will be removed in 4.0.0 version .
164+ * @deprecated Will be removed in version 4.0.0.
165165 */
166166 @Deprecated(" Use {@link #setRegion(Region)}" )
167167 fun setRegion (region : String ): Builder {
@@ -173,30 +173,58 @@ class GliaWidgetsConfig private constructor(builder: Builder) {
173173 * @hidden
174174 * @param baseDomain Base domain to be used.
175175 * @return Builder instance
176- * @deprecated Will be removed in 4.0.0 version .
176+ * @deprecated Will be removed in version 4.0.0.
177177 */
178178 @Deprecated(" Use {@link #setRegion(Region)}" )
179179 fun setBaseDomain (baseDomain : String ): Builder {
180180 this .baseDomain = baseDomain
181181 return this
182182 }
183183
184+ /* *
185+ * @param siteApiKey - your site API key
186+ * @return Builder instance
187+ * @deprecated Will be removed in version 4.0.0.
188+ */
184189 @Deprecated(
185- " Use {@link #setSiteApiKey(SiteApiKey )}" ,
190+ " Use {@link #setAuthorizationMethod(AuthorizationMethod.UserApiKey )}" ,
186191 ReplaceWith (
187- " setSiteApiKey(SiteApiKey (id, secret))" ,
188- " com.glia.widgets.SiteApiKey "
192+ " setAuthorizationMethod(AuthorizationMethod.UserApiKey (id, secret))" ,
193+ " com.glia.widgets.AuthorizationMethod "
189194 )
190195 )
191196 fun setSiteApiKey (siteApiKey : com.glia.androidsdk.SiteApiKey ): Builder {
192197 return setSiteApiKey(siteApiKey.toWidgetType())
193198 }
194199
200+ /* *
201+ * @param siteApiKey - your site API key
202+ * @return Builder instance
203+ * @deprecated Will be removed in version 4.0.0.
204+ */
205+ @Deprecated(
206+ " Use {@link #setAuthorizationMethod(AuthorizationMethod.UserApiKey)}" ,
207+ ReplaceWith (
208+ " setAuthorizationMethod(AuthorizationMethod.UserApiKey(id, secret))" ,
209+ " com.glia.widgets.AuthorizationMethod"
210+ )
211+ )
195212 fun setSiteApiKey (siteApiKey : AuthorizationMethod .SiteApiKey ): Builder {
196213 this .authorizationMethod = siteApiKey
197214 return this
198215 }
199216
217+ /* *
218+ * @param authorizationMethod - your API key
219+ * @return Builder instance
220+ *
221+ * Example:
222+ * ```
223+ * .setAuthorizationMethod(
224+ * AuthorizationMethod.UserApiKey("API_KEY_ID", "API_KEY_SECRET")
225+ * )
226+ * ```
227+ */
200228 fun setAuthorizationMethod (authorizationMethod : AuthorizationMethod ): Builder {
201229 this .authorizationMethod = authorizationMethod
202230 return this
0 commit comments