Skip to main content

ohos_abilitykit_sys/runtime/start_options/
start_options_ffi.rs

1// automatically generated by rust-bindgen 0.71.1
2
3#![allow(non_upper_case_globals)]
4#![allow(non_camel_case_types)]
5#![allow(non_snake_case)]
6use crate::runtime::{
7    AbilityRuntimeResult, AbilityRuntime_StartVisibility, AbilityRuntime_SupportedWindowMode,
8    AbilityRuntime_WindowMode,
9};
10use ohos_sys_opaque_types::OH_PixelmapNative;
11
12#[repr(C)]
13pub struct AbilityRuntime_StartOptions {
14    _unused: [u8; 0],
15}
16extern "C" {
17    /// Create start options.
18    ///
19    ///
20    /// # Returns
21    ///
22    /// * Returns the newly created AbilityRuntime_StartOptions object.
23    ///
24    ///
25    /// Available since API-level: 17
26    #[cfg(feature = "api-17")]
27    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
28    pub fn OH_AbilityRuntime_CreateStartOptions() -> *mut AbilityRuntime_StartOptions;
29    /// Destroy input start options.
30    ///
31    /// # Arguments
32    ///
33    /// * `startOptions` - The options to be deleted.
34    ///
35    /// # Returns
36    ///
37    /// * The error code.
38    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
39    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
40    ///
41    /// Available since API-level: 17
42    #[cfg(feature = "api-17")]
43    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
44    pub fn OH_AbilityRuntime_DestroyStartOptions(
45        startOptions: *mut *mut AbilityRuntime_StartOptions,
46    ) -> AbilityRuntimeResult;
47    /// Set window mode for start options.
48    ///
49    /// # Arguments
50    ///
51    /// * `startOptions` - The options to set window mode for.
52    ///
53    /// * `windowMode` - The window mode.
54    ///
55    /// # Returns
56    ///
57    /// * The error code.
58    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
59    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions or windowMode is invalid.
60    ///
61    /// Available since API-level: 17
62    #[cfg(feature = "api-17")]
63    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
64    pub fn OH_AbilityRuntime_SetStartOptionsWindowMode(
65        startOptions: *mut AbilityRuntime_StartOptions,
66        windowMode: AbilityRuntime_WindowMode,
67    ) -> AbilityRuntimeResult;
68    /// Get window mode from start options.
69    ///
70    /// # Arguments
71    ///
72    /// * `startOptions` - The options to get window mode from.
73    ///
74    /// * `windowMode` - The obtained window mode.
75    ///
76    /// # Returns
77    ///
78    /// * The error code.
79    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
80    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
81    ///
82    /// Available since API-level: 17
83    #[cfg(feature = "api-17")]
84    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
85    pub fn OH_AbilityRuntime_GetStartOptionsWindowMode(
86        startOptions: *mut AbilityRuntime_StartOptions,
87        windowMode: *mut AbilityRuntime_WindowMode,
88    ) -> AbilityRuntimeResult;
89    /// Set display id for start options.
90    ///
91    /// # Arguments
92    ///
93    /// * `startOptions` - The options to set display id for.
94    ///
95    /// * `displayId` - The display id.
96    ///
97    /// # Returns
98    ///
99    /// * The error code.
100    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
101    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
102    ///
103    /// Available since API-level: 17
104    #[cfg(feature = "api-17")]
105    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
106    pub fn OH_AbilityRuntime_SetStartOptionsDisplayId(
107        startOptions: *mut AbilityRuntime_StartOptions,
108        displayId: i32,
109    ) -> AbilityRuntimeResult;
110    /// Get display id from start options.
111    ///
112    /// # Arguments
113    ///
114    /// * `startOptions` - The options to get display id from.
115    ///
116    /// * `displayId` - The obtained display id.
117    ///
118    /// # Returns
119    ///
120    /// * The error code.
121    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
122    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
123    ///
124    /// Available since API-level: 17
125    #[cfg(feature = "api-17")]
126    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
127    pub fn OH_AbilityRuntime_GetStartOptionsDisplayId(
128        startOptions: *mut AbilityRuntime_StartOptions,
129        displayId: *mut i32,
130    ) -> AbilityRuntimeResult;
131    /// Set with animation flag for start options.
132    ///
133    /// # Arguments
134    ///
135    /// * `startOptions` - The options to set with animation for.
136    ///
137    /// * `withAnimation` - The with animation.
138    ///
139    /// # Returns
140    ///
141    /// * The error code.
142    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
143    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
144    ///
145    /// Available since API-level: 17
146    #[cfg(feature = "api-17")]
147    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
148    pub fn OH_AbilityRuntime_SetStartOptionsWithAnimation(
149        startOptions: *mut AbilityRuntime_StartOptions,
150        withAnimation: bool,
151    ) -> AbilityRuntimeResult;
152    /// Get with animation from start options.
153    ///
154    /// # Arguments
155    ///
156    /// * `startOptions` - The options to get with animation from.
157    ///
158    /// * `withAnimation` - The obtained with animation.
159    ///
160    /// # Returns
161    ///
162    /// * The error code.
163    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
164    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
165    ///
166    /// Available since API-level: 17
167    #[cfg(feature = "api-17")]
168    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
169    pub fn OH_AbilityRuntime_GetStartOptionsWithAnimation(
170        startOptions: *mut AbilityRuntime_StartOptions,
171        withAnimation: *mut bool,
172    ) -> AbilityRuntimeResult;
173    /// Set window left for start options.
174    ///
175    /// # Arguments
176    ///
177    /// * `startOptions` - The options to set window left for.
178    ///
179    /// * `windowLeft` - The window left.
180    ///
181    /// # Returns
182    ///
183    /// * The error code.
184    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
185    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
186    ///
187    /// Available since API-level: 17
188    #[cfg(feature = "api-17")]
189    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
190    pub fn OH_AbilityRuntime_SetStartOptionsWindowLeft(
191        startOptions: *mut AbilityRuntime_StartOptions,
192        windowLeft: i32,
193    ) -> AbilityRuntimeResult;
194    /// Get window left from start options.
195    ///
196    /// # Arguments
197    ///
198    /// * `startOptions` - The options to get window left from.
199    ///
200    /// * `windowLeft` - The obtained window left.
201    ///
202    /// # Returns
203    ///
204    /// * The error code.
205    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
206    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
207    ///
208    /// Available since API-level: 17
209    #[cfg(feature = "api-17")]
210    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
211    pub fn OH_AbilityRuntime_GetStartOptionsWindowLeft(
212        startOptions: *mut AbilityRuntime_StartOptions,
213        windowLeft: *mut i32,
214    ) -> AbilityRuntimeResult;
215    /// Set window top for start options.
216    ///
217    /// # Arguments
218    ///
219    /// * `startOptions` - The options to set window top for.
220    ///
221    /// * `windowTop` - The window top.
222    ///
223    /// # Returns
224    ///
225    /// * The error code.
226    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
227    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
228    ///
229    /// Available since API-level: 17
230    #[cfg(feature = "api-17")]
231    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
232    pub fn OH_AbilityRuntime_SetStartOptionsWindowTop(
233        startOptions: *mut AbilityRuntime_StartOptions,
234        windowTop: i32,
235    ) -> AbilityRuntimeResult;
236    /// Get window top from start options.
237    ///
238    /// # Arguments
239    ///
240    /// * `startOptions` - The options to get window top from.
241    ///
242    /// * `windowTop` - The obtained window top.
243    ///
244    /// # Returns
245    ///
246    /// * The error code.
247    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
248    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
249    ///
250    /// Available since API-level: 17
251    #[cfg(feature = "api-17")]
252    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
253    pub fn OH_AbilityRuntime_GetStartOptionsWindowTop(
254        startOptions: *mut AbilityRuntime_StartOptions,
255        windowTop: *mut i32,
256    ) -> AbilityRuntimeResult;
257    /// Set window height for start options.
258    ///
259    /// # Arguments
260    ///
261    /// * `startOptions` - The options to set window height for.
262    ///
263    /// * `windowHeight` - The window height.
264    ///
265    /// # Returns
266    ///
267    /// * The error code.
268    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
269    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
270    ///
271    /// Available since API-level: 17
272    #[cfg(feature = "api-17")]
273    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
274    pub fn OH_AbilityRuntime_SetStartOptionsWindowHeight(
275        startOptions: *mut AbilityRuntime_StartOptions,
276        windowHeight: i32,
277    ) -> AbilityRuntimeResult;
278    /// Get window height from start options.
279    ///
280    /// # Arguments
281    ///
282    /// * `startOptions` - The options to get window height from.
283    ///
284    /// * `windowHeight` - The obtained window height.
285    ///
286    /// # Returns
287    ///
288    /// * The error code.
289    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
290    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
291    ///
292    /// Available since API-level: 17
293    #[cfg(feature = "api-17")]
294    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
295    pub fn OH_AbilityRuntime_GetStartOptionsWindowHeight(
296        startOptions: *mut AbilityRuntime_StartOptions,
297        windowHeight: *mut i32,
298    ) -> AbilityRuntimeResult;
299    /// Set window width for start options.
300    ///
301    /// # Arguments
302    ///
303    /// * `startOptions` - The options to set window width for.
304    ///
305    /// * `windowWidth` - The window width.
306    ///
307    /// # Returns
308    ///
309    /// * The error code.
310    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
311    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
312    ///
313    /// Available since API-level: 17
314    #[cfg(feature = "api-17")]
315    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
316    pub fn OH_AbilityRuntime_SetStartOptionsWindowWidth(
317        startOptions: *mut AbilityRuntime_StartOptions,
318        windowWidth: i32,
319    ) -> AbilityRuntimeResult;
320    /// Get window width from start options.
321    ///
322    /// # Arguments
323    ///
324    /// * `startOptions` - The options to get window width from.
325    ///
326    /// * `windowWidth` - The obtained window width.
327    ///
328    /// # Returns
329    ///
330    /// * The error code.
331    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
332    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
333    ///
334    /// Available since API-level: 17
335    #[cfg(feature = "api-17")]
336    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
337    pub fn OH_AbilityRuntime_GetStartOptionsWindowWidth(
338        startOptions: *mut AbilityRuntime_StartOptions,
339        windowWidth: *mut i32,
340    ) -> AbilityRuntimeResult;
341    /// Set start visibility for start options.
342    ///
343    /// # Arguments
344    ///
345    /// * `startOptions` - The options to set start visibility for.
346    ///
347    /// * `startVisibility` - The start visibility.
348    ///
349    /// # Returns
350    ///
351    /// * The error code.
352    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
353    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
354    ///
355    /// Available since API-level: 17
356    #[cfg(feature = "api-17")]
357    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
358    pub fn OH_AbilityRuntime_SetStartOptionsStartVisibility(
359        startOptions: *mut AbilityRuntime_StartOptions,
360        startVisibility: AbilityRuntime_StartVisibility,
361    ) -> AbilityRuntimeResult;
362    /// Get start visibility from start options.
363    ///
364    /// # Arguments
365    ///
366    /// * `startOptions` - The options to get start visibility from.
367    ///
368    /// * `startVisibility` - The obtained start visibility.
369    ///
370    /// # Returns
371    ///
372    /// * The error code.
373    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
374    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
375    ///
376    /// Available since API-level: 17
377    #[cfg(feature = "api-17")]
378    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
379    pub fn OH_AbilityRuntime_GetStartOptionsStartVisibility(
380        startOptions: *mut AbilityRuntime_StartOptions,
381        startVisibility: *mut AbilityRuntime_StartVisibility,
382    ) -> AbilityRuntimeResult;
383    /// Set start window icon for start options.
384    ///
385    /// # Arguments
386    ///
387    /// * `startOptions` - The options to set start window icon for.
388    ///
389    /// * `startWindowIcon` - The start window icon.
390    ///
391    /// # Returns
392    ///
393    /// * The error code.
394    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
395    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid
396    /// or startWindowIcon is nullptr.
397    ///
398    /// Available since API-level: 17
399    #[cfg(feature = "api-17")]
400    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
401    pub fn OH_AbilityRuntime_SetStartOptionsStartWindowIcon(
402        startOptions: *mut AbilityRuntime_StartOptions,
403        startWindowIcon: *mut OH_PixelmapNative,
404    ) -> AbilityRuntimeResult;
405    /// Get start window icon from start options.
406    ///
407    /// # Arguments
408    ///
409    /// * `startOptions` - The options to get start window icon from.
410    ///
411    /// * `startWindowIcon` - The obtained start window icon.
412    ///
413    /// # Returns
414    ///
415    /// * The error code.
416    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
417    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid
418    /// or startWindowIcon is NOT nullptr.
419    ///
420    /// Available since API-level: 17
421    #[cfg(feature = "api-17")]
422    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
423    pub fn OH_AbilityRuntime_GetStartOptionsStartWindowIcon(
424        startOptions: *mut AbilityRuntime_StartOptions,
425        startWindowIcon: *mut *mut OH_PixelmapNative,
426    ) -> AbilityRuntimeResult;
427    /// Set start window background color for start options.
428    ///
429    /// # Arguments
430    ///
431    /// * `startOptions` - The options to set start window background color for.
432    ///
433    /// * `startWindowBackgroundColor` - The start window background color.
434    ///
435    /// # Returns
436    ///
437    /// * The error code.
438    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
439    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid
440    /// or startWindowBackgroundColor is nullptr.
441    ///
442    /// Available since API-level: 17
443    #[cfg(feature = "api-17")]
444    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
445    pub fn OH_AbilityRuntime_SetStartOptionsStartWindowBackgroundColor(
446        startOptions: *mut AbilityRuntime_StartOptions,
447        startWindowBackgroundColor: *const ::core::ffi::c_char,
448    ) -> AbilityRuntimeResult;
449    /// Get start window background color from start options.
450    ///
451    /// # Arguments
452    ///
453    /// * `startOptions` - The options to get start window background color from.
454    ///
455    /// * `startWindowBackgroundColor` - The obtained start window background color.
456    ///
457    /// * `size` - The size of start window background color.
458    ///
459    /// # Returns
460    ///
461    /// * The error code.
462    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
463    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid
464    /// or startWindowBackgroundColor is NOT nullptr.
465    /// [`ABILITY_RUNTIME_ERROR_CODE_INTERNAL`] if error occurred in malloc.
466    ///
467    /// Available since API-level: 17
468    #[cfg(feature = "api-17")]
469    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
470    pub fn OH_AbilityRuntime_GetStartOptionsStartWindowBackgroundColor(
471        startOptions: *mut AbilityRuntime_StartOptions,
472        startWindowBackgroundColor: *mut *mut ::core::ffi::c_char,
473        size: *mut usize,
474    ) -> AbilityRuntimeResult;
475    /// Set start window modes for start options.
476    ///
477    /// # Arguments
478    ///
479    /// * `startOptions` - The options to set start window modes for.
480    ///
481    /// * `supportedWindowModes` - The start window modes.
482    ///
483    /// * `size` - The size of start window modes.
484    ///
485    /// # Returns
486    ///
487    /// * The error code.
488    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
489    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions or supportWindowMode
490    /// or size is invalid.
491    ///
492    /// Available since API-level: 17
493    #[cfg(feature = "api-17")]
494    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
495    pub fn OH_AbilityRuntime_SetStartOptionsSupportedWindowModes(
496        startOptions: *mut AbilityRuntime_StartOptions,
497        supportedWindowModes: *mut AbilityRuntime_SupportedWindowMode,
498        size: usize,
499    ) -> AbilityRuntimeResult;
500    /// Get start window modes from start options.
501    ///
502    /// # Arguments
503    ///
504    /// * `startOptions` - The options to get start window modes from.
505    ///
506    /// * `supportedWindowModes` - The obtained start window modes.
507    ///
508    /// * `size` - The size of the returned start window modes.
509    ///
510    /// # Returns
511    ///
512    /// * The error code.
513    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
514    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invallid
515    /// or supportWindowMode is NOT nullptr
516    /// [`ABILITY_RUNTIME_ERROR_CODE_INTERNAL`] if error occurred in malloc.
517    ///
518    /// Available since API-level: 17
519    #[cfg(feature = "api-17")]
520    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
521    pub fn OH_AbilityRuntime_GetStartOptionsSupportedWindowModes(
522        startOptions: *mut AbilityRuntime_StartOptions,
523        supportedWindowModes: *mut *mut AbilityRuntime_SupportedWindowMode,
524        size: *mut usize,
525    ) -> AbilityRuntimeResult;
526    /// Set min window width for start options.
527    ///
528    /// # Arguments
529    ///
530    /// * `startOptions` - The options to set min window width for.
531    ///
532    /// * `minWindowWidth` - The min window width.
533    ///
534    /// # Returns
535    ///
536    /// * The error code.
537    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
538    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
539    ///
540    /// Available since API-level: 17
541    #[cfg(feature = "api-17")]
542    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
543    pub fn OH_AbilityRuntime_SetStartOptionsMinWindowWidth(
544        startOptions: *mut AbilityRuntime_StartOptions,
545        minWindowWidth: i32,
546    ) -> AbilityRuntimeResult;
547    /// Get min window width from start options.
548    ///
549    /// # Arguments
550    ///
551    /// * `startOptions` - The options to get min window width from.
552    ///
553    /// * `minWindowWidth` - The obtained min window width.
554    ///
555    /// # Returns
556    ///
557    /// * The error code.
558    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
559    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
560    ///
561    /// Available since API-level: 17
562    #[cfg(feature = "api-17")]
563    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
564    pub fn OH_AbilityRuntime_GetStartOptionsMinWindowWidth(
565        startOptions: *mut AbilityRuntime_StartOptions,
566        minWindowWidth: *mut i32,
567    ) -> AbilityRuntimeResult;
568    /// Set max window width for start options.
569    ///
570    /// # Arguments
571    ///
572    /// * `startOptions` - The options to set max window width for.
573    ///
574    /// * `maxWindowWidth` - The max window width.
575    ///
576    /// # Returns
577    ///
578    /// * The error code.
579    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
580    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
581    ///
582    /// Available since API-level: 17
583    #[cfg(feature = "api-17")]
584    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
585    pub fn OH_AbilityRuntime_SetStartOptionsMaxWindowWidth(
586        startOptions: *mut AbilityRuntime_StartOptions,
587        maxWindowWidth: i32,
588    ) -> AbilityRuntimeResult;
589    /// Get max window width from start options.
590    ///
591    /// # Arguments
592    ///
593    /// * `startOptions` - The options to get max window width from.
594    ///
595    /// * `maxWindowWidth` - The obtained max window width.
596    ///
597    /// # Returns
598    ///
599    /// * The error code.
600    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
601    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
602    ///
603    /// Available since API-level: 17
604    #[cfg(feature = "api-17")]
605    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
606    pub fn OH_AbilityRuntime_GetStartOptionsMaxWindowWidth(
607        startOptions: *mut AbilityRuntime_StartOptions,
608        maxWindowWidth: *mut i32,
609    ) -> AbilityRuntimeResult;
610    /// Set min window height for start options.
611    ///
612    /// # Arguments
613    ///
614    /// * `startOptions` - The options to set min window height for.
615    ///
616    /// * `minWindowHeight` - The min window height.
617    ///
618    /// # Returns
619    ///
620    /// * The error code.
621    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
622    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
623    ///
624    /// Available since API-level: 17
625    #[cfg(feature = "api-17")]
626    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
627    pub fn OH_AbilityRuntime_SetStartOptionsMinWindowHeight(
628        startOptions: *mut AbilityRuntime_StartOptions,
629        minWindowHeight: i32,
630    ) -> AbilityRuntimeResult;
631    /// Get min window height from start options.
632    ///
633    /// # Arguments
634    ///
635    /// * `startOptions` - The options to get min window height from.
636    ///
637    /// * `minWindowHeight` - The obtained min window height.
638    ///
639    /// # Returns
640    ///
641    /// * The error code.
642    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
643    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
644    ///
645    /// Available since API-level: 17
646    #[cfg(feature = "api-17")]
647    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
648    pub fn OH_AbilityRuntime_GetStartOptionsMinWindowHeight(
649        startOptions: *mut AbilityRuntime_StartOptions,
650        minWindowHeight: *mut i32,
651    ) -> AbilityRuntimeResult;
652    /// Set max window height for start options.
653    ///
654    /// # Arguments
655    ///
656    /// * `startOptions` - The options to set max window height for.
657    ///
658    /// * `maxWindowHeight` - The max window height.
659    ///
660    /// # Returns
661    ///
662    /// * The error code.
663    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
664    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
665    ///
666    /// Available since API-level: 17
667    #[cfg(feature = "api-17")]
668    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
669    pub fn OH_AbilityRuntime_SetStartOptionsMaxWindowHeight(
670        startOptions: *mut AbilityRuntime_StartOptions,
671        maxWindowHeight: i32,
672    ) -> AbilityRuntimeResult;
673    /// Get max window height from start options.
674    ///
675    /// # Arguments
676    ///
677    /// * `startOptions` - The options to get max window height from.
678    ///
679    /// * `maxWindowHeight` - The obtained max window height.
680    ///
681    /// # Returns
682    ///
683    /// * The error code.
684    /// [`ABILITY_RUNTIME_ERROR_CODE_NO_ERROR`] if the operation is successful.
685    /// [`ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID`] if the startOptions is invalid.
686    ///
687    /// Available since API-level: 17
688    #[cfg(feature = "api-17")]
689    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
690    pub fn OH_AbilityRuntime_GetStartOptionsMaxWindowHeight(
691        startOptions: *mut AbilityRuntime_StartOptions,
692        maxWindowHeight: *mut i32,
693    ) -> AbilityRuntimeResult;
694}