@compass-framework/core 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/AttributeSet.d.ts +13 -10
- package/package.json +1 -1
package/@types/AttributeSet.d.ts
CHANGED
|
@@ -2,39 +2,42 @@ import { CharSequence, Influence, Nullable } from "@compass-framework/library";
|
|
|
2
2
|
import { Resources } from "./Resources";
|
|
3
3
|
import { PictureDrawable } from "./PictureDrawable";
|
|
4
4
|
import { Drawable } from "./Drawable";
|
|
5
|
+
import { ColorDrawable } from "./ColorDrawable";
|
|
5
6
|
|
|
6
7
|
export declare abstract class AttributeSet {
|
|
7
|
-
public abstract hasAttribute(name: string): boolean;
|
|
8
|
-
|
|
9
|
-
public abstract getText(name: string, defaultValue?: CharSequence): CharSequence;
|
|
10
|
-
|
|
11
8
|
public abstract getNumber(name: string, defaultValue?: number): number;
|
|
12
9
|
|
|
13
10
|
public abstract getResourceId(name: string, defaultValue?: number): number;
|
|
14
11
|
|
|
15
12
|
public abstract getColor(name: string, defaultValue?: number): number;
|
|
16
13
|
|
|
14
|
+
public abstract getPictureDrawable(name: string, defaultValue?: PictureDrawable): PictureDrawable;
|
|
15
|
+
|
|
17
16
|
public abstract getBoolean(name: string, defaultValue?: boolean): boolean;
|
|
18
17
|
|
|
19
18
|
public abstract getResources(): Resources;
|
|
20
19
|
|
|
21
|
-
public abstract
|
|
20
|
+
public abstract getConvert<T, R>(name: string, action: Influence<string, Nullable<R>>, defaultValue?: R): R;
|
|
22
21
|
|
|
23
|
-
public abstract
|
|
22
|
+
public abstract getText(name: string, defaultValue?: CharSequence): CharSequence;
|
|
24
23
|
|
|
25
24
|
public abstract getDimension(name: string, defaultValue?: number): number;
|
|
26
25
|
|
|
26
|
+
public abstract hasAttribute(name: string): boolean;
|
|
27
|
+
|
|
28
|
+
public abstract getInt(name: string, defaultValue?: number): number;
|
|
29
|
+
|
|
27
30
|
public abstract getString(name: string, defaultValue?: string): string;
|
|
28
31
|
|
|
29
32
|
public abstract getDrawable(name: string, defaultValue?: Drawable): Drawable;
|
|
30
33
|
|
|
31
|
-
public abstract getConvert<T, R>(name: string, action: Influence<string, Nullable<R>>, defaultValue?: R): R;
|
|
32
|
-
|
|
33
34
|
public abstract getAttributeCount(): number;
|
|
34
35
|
|
|
35
36
|
public abstract getAttributeName(index: number): string;
|
|
36
37
|
|
|
37
|
-
public abstract
|
|
38
|
+
public abstract getColorDrawable(name: string, defaultValue?: ColorDrawable): ColorDrawable;
|
|
39
|
+
|
|
40
|
+
public abstract getAttributeValue(name: string): string;
|
|
38
41
|
|
|
39
|
-
public abstract
|
|
42
|
+
public abstract setAttributeValue(name: string, value: unknown): void;
|
|
40
43
|
}
|