/** * @since Available in iOS 4.0 and later. */ public boolean isCompatibleWithCGBitmapContext() { if (has(CVPixelBufferAttribute.CGBitmapContextCompatibility)) { CFBoolean val = get(CVPixelBufferAttribute.CGBitmapContextCompatibility, CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public CMSampleBufferAttachment setShouldResetDecoderBeforeDecoding(boolean shouldResetDecoderBeforeDecoding) { set(CMSampleBufferAttachmentKey.ResetDecoderBeforeDecoding, CFBoolean.valueOf(shouldResetDecoderBeforeDecoding)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CMSampleBufferAttachment setShouldDrainAfterDecoding(boolean shouldDrainAfterDecoding) { set(CMSampleBufferAttachmentKey.DrainAfterDecoding, CFBoolean.valueOf(shouldDrainAfterDecoding)); return this; } /**
/** * @since Available in iOS 3.2 and later. */ public boolean isEnabled() { if (has(CTFontAttribute.Enabled)) { CFBoolean val = get(CTFontAttribute.Enabled, CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setCompatibleWithCGImage(boolean compatibleWithCGImage) { set(CVPixelBufferAttribute.CGImageCompatibility, CFBoolean.valueOf(compatibleWithCGImage)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean isNotSync() { if (has(CMSampleAttachmentKey.NotSync)) { CFBoolean val = get(CMSampleAttachmentKey.NotSync, CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 6.0 and later. */ public CVPixelBufferAttributes setCompatibleWithOpenGLES(boolean compatibleWithOpenGLES) { set(CVPixelBufferAttribute.OpenGLESCompatibility, CFBoolean.valueOf(compatibleWithOpenGLES)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean hasRedundantCoding() { if (has(CMSampleAttachmentKey.HasRedundantCoding)) { CFBoolean val = get(CMSampleAttachmentKey.HasRedundantCoding, CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 6.0 and later. */ public CTFontAttributes setDownloadable(boolean downloadable) { set(CTFontAttribute.Downloadable, CFBoolean.valueOf(downloadable)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean isCompatibleWithOpenGL() { if (has(CVPixelBufferAttribute.OpenGLCompatibility)) { CFBoolean val = get(CVPixelBufferAttribute.OpenGLCompatibility, CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public CMSampleAttachment setPartialSync(boolean partialSync) { set(CMSampleAttachmentKey.PartialSync, CFBoolean.valueOf(partialSync)); return this; } /**
/** * @since Available in iOS 6.0 and later. */ public boolean isBold() { if (has(CMTextMarkupAttribute.BoldStyle)) { CFBoolean val = get(CMTextMarkupAttribute.BoldStyle, CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public CMSampleBufferAttachment setShouldResumeOutput(boolean shouldResumeOutput) { set(CMSampleBufferAttachmentKey.ResumeOutput, CFBoolean.valueOf(shouldResumeOutput)); return this; } /**
/** * @since Available in iOS 3.2 and later. */ public boolean usesForegroundColorFromContext() { if (has(CTAttributedStringAttribute.ForegroundColorFromContext)) { CFBoolean val = get(CTAttributedStringAttribute.ForegroundColorFromContext, CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public CMSampleBufferAttachment setShouldRevers(boolean shouldRevers) { set(CMSampleBufferAttachmentKey.Reverse, CFBoolean.valueOf(shouldRevers)); return this; } /**
/** * @since Available in iOS 6.0 and later. */ public boolean isDownloadable() { if (has(CTFontAttribute.Downloadable)) { CFBoolean val = get(CTFontAttribute.Downloadable, CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public CMSampleBufferAttachment setPermanentEmptyMedia(boolean permanentEmptyMedia) { set(CMSampleBufferAttachmentKey.PermanentEmptyMedia, CFBoolean.valueOf(permanentEmptyMedia)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean isPartialSync() { if (has(CMSampleAttachmentKey.PartialSync)) { CFBoolean val = get(CMSampleAttachmentKey.PartialSync, CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public CMSampleBufferAttachment setEndsPreviousSampleDuration(boolean endsPreviousSampleDuration) { set(CMSampleBufferAttachmentKey.EndsPreviousSampleDuration, CFBoolean.valueOf(endsPreviousSampleDuration)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean allowsEarlierDisplayTimes() { if (has(CMSampleAttachmentKey.EarlierDisplayTimesAllowed)) { CFBoolean val = get(CMSampleAttachmentKey.EarlierDisplayTimesAllowed, CFBoolean.class); return val.booleanValue(); } return false; } /**