Skip to content

Commit fb4c97b

Browse files
author
Veselina Radeva
committed
refactor: Remove deprecated property thumb. Use thumbAsset instead.
1 parent d706aa9 commit fb4c97b

3 files changed

Lines changed: 0 additions & 34 deletions

File tree

src/imagepicker.android.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@ export class SelectedAsset extends imageAssetModule.ImageAsset {
5858
});
5959
}
6060

61-
// [Deprecated. Please use thumbAsset instead.]
62-
get thumb(): imagesource.ImageSource {
63-
if (!this._thumbRequested) {
64-
this.decodeThumbUri();
65-
}
66-
return this._thumb;
67-
}
68-
6961
get thumbAsset(): imageAssetModule.ImageAsset {
7062
return this._thumbAsset;
7163
}

src/imagepicker.ios.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,6 @@ export class Album extends data_observable.Observable {
139139
return this._assets;
140140
}
141141

142-
// [Deprecated. Please use thumbAsset instead.]
143-
get thumb(): image_source.ImageSource {
144-
return this._thumb;
145-
}
146-
147142
protected setThumb(value: image_source.ImageSource): void {
148143
this._thumb = value;
149144
this.notifyPropertyChange("thumb", value);
@@ -160,11 +155,6 @@ export class Album extends data_observable.Observable {
160155
}
161156

162157
export class SelectedAsset extends imageAssetModule.ImageAsset {
163-
// [Deprecated. SelectedAsset will be used directly as a source for the thumb image]
164-
get thumb(): image_source.ImageSource {
165-
return null;
166-
}
167-
168158
get uri(): string {
169159
return null;
170160
}
@@ -200,15 +190,6 @@ export class Asset extends SelectedAsset {
200190
return this._album;
201191
}
202192

203-
// [Deprecated. Asset will be used directly as a source for the thumb image]
204-
get thumb(): image_source.ImageSource {
205-
if (!this._thumbRequested) {
206-
this._thumbRequested = true;
207-
this.onThumbRequest();
208-
}
209-
return this._thumb;
210-
}
211-
212193
get selected(): boolean {
213194
return !!this._selected;
214195
}

src/index.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ export interface ImageOptions {
2020
}
2121

2222
export class SelectedAsset extends imageAssetModule.ImageAsset {
23-
/**
24-
* [Deprecated. SelectedAsset will be used directly as a source for the thumb image]
25-
* A 100x100 pixels thumb of the selected image.
26-
* This property will be initialized on demand. The first access will return undefined or null.
27-
* It will trigger an async load and when the thumb is obtained, a property changed notification will occur.
28-
*/
29-
thumb: imagesource.ImageSource;
3023

3124
/**
3225
* URI that identifies the image asset.

0 commit comments

Comments
 (0)